/* 원본 스타일 그대로 */
#man_container {
    background: #f5f7fa;
    min-height: 100vh;
    padding: 20px;
}
#man_container .container { max-width: 800px; margin: 0 auto; }
#man_container h1 { 
    text-align: center; 
    font-size: 28px; 
    margin-bottom: 20px;
    color: #1a1a1a;
    font-weight: 700;
}

/* 메인 타이틀 스타일 */
.main-title {
    text-align: center;
    margin: 20px 0 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.title-icon {
    font-size: 32px;
    animation: bounce 2s ease-in-out infinite;
    display: inline-block;
}

.title-text {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -0.5px;
    background-size: 200% 200%;
    position: relative;
}

.title-text.active {
    animation: gradientShift 3s ease infinite, textTilt 0.6s ease-in-out 3;
}

.title-text::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, #667eea, #764ba2, transparent);
    border-radius: 2px;
    opacity: 0;
}

.title-text.active::after {
    animation: shimmer 2s ease-in-out 3;
}

/* 아이콘 통통 튀는 애니메이션 */
@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* 그라데이션 이동 애니메이션 */
@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* 텍스트 기울이기 애니메이션 (운동 효과) */
@keyframes textTilt {
    0%, 100% {
        transform: rotate(0deg);
    }
    25% {
        transform: rotate(-3deg);
    }
    75% {
        transform: rotate(3deg);
    }
}

/* 밑줄 반짝이는 애니메이션 (3회 반복) */
@keyframes shimmer {
    0% {
        opacity: 0.5;
        transform: translateX(-100%);
    }
    50% {
        opacity: 1;
        transform: translateX(0%);
    }
    100% {
        opacity: 0.5;
        transform: translateX(100%);
    }
}

/* 모바일 대응 */
@media (max-width: 600px) {
    .title-icon {
        font-size: 28px;
    }
    
    .title-text {
        font-size: 24px;
    }
}

.summary-card {
    background: white;
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}
.date { 
    font-size: 14px; 
    color: #666;
    margin-bottom: 20px;
    font-weight: 500;
}

/* 2열 요약 그리드 */
.summary-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 20px;
    padding-top: 8px;
}

.summary-item {
    background: #f8f9fa;
    padding: 16px;
    padding-top: 26px;
    border-radius: 12px;
    text-align: center;
    position: relative;
    overflow: visible;
}

.summary-label {
    position: absolute;
    top: -8px;
    left: 8px;
    font-size: 13px;
    color: #c92a2a;
    font-weight: 600;
    background: linear-gradient(135deg, #ffe3e3 0%, #ffd8d8 100%);
    padding: 6px 12px;
    border-radius: 6px;
    box-shadow: 0 3px 8px rgba(255, 107, 107, 0.15);
    z-index: 1;
}

.summary-value {
    font-size: 28px;
    font-weight: 700;
    color: #212529;
    display: inline;
}

.summary-value.intake {
    color: #ff6b6b;
}

.summary-value.burned {
    color: #51cf66;
}

.summary-unit {
    font-size: 14px;
    color: #adb5bd;
    font-weight: 500;
    margin-left: 4px;
    display: inline;
}

/* 질런 운동 카드 */
.jilrun-card {
    background: white;
    border-radius: 20px;
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.jilrun-title {
    font-size: 18px;
    font-weight: 700;
    color: #212529;
    margin-bottom: 12px;
    text-align: center;
}

.date-time-bar {
    background: linear-gradient(135deg, #339af0 0%, #1c7ed6 100%);
    padding: 12px 20px;
    border-radius: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    box-shadow: 0 3px 12px rgba(51, 154, 240, 0.3);
}

.date-info {
    color: white;
    font-size: 16px;
    font-weight: 600;
}

.time-info {
    color: white;
    font-size: 16px;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.2);
    padding: 4px 12px;
    border-radius: 6px;
}

.jilrun-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    padding-top: 8px;
}

.jilrun-item {
    background: #f8f9fa;
    padding: 16px;
    padding-top: 26px;
    border-radius: 12px;
    text-align: center;
    position: relative;
    overflow: visible;
}

.jilrun-label {
    position: absolute;
    top: -8px;
    left: 8px;
    font-size: 13px;
    color: #2b8a3e;
    font-weight: 600;
    background: linear-gradient(135deg, #d3f9d8 0%, #c3fae8 100%);
    padding: 6px 12px;
    border-radius: 6px;
    box-shadow: 0 3px 8px rgba(81, 207, 102, 0.15);
    z-index: 1;
}

.jilrun-value {
    font-size: 24px;
    font-weight: 700;
    color: #212529;
    display: inline;
}

.jilrun-value.burned {
    color: #ff6b6b;
}

.jilrun-unit {
    font-size: 14px;
    color: #adb5bd;
    font-weight: 500;
    margin-left: 4px;
    display: inline;
}

.cal-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 12px 0;
    padding: 16px;
    background: #f8f9fa;
    border-radius: 12px;
}
.cal-label { 
    font-size: 15px;
    color: #495057;
    font-weight: 500;
}
.cal-value { 
    font-size: 22px; 
    font-weight: 700;
}
.cal-value.intake { color: #ff6b6b; }
.cal-value.burned { color: #51cf66; }
.cal-value.net { color: #ff6b6b; }
.cal-value.net.good { color: #51cf66; }

.status {
    text-align: center;
    padding: 14px;
    margin-top: 20px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 15px;
}
.status.success { 
    background: #d3f9d8;
    color: #2b8a3e;
}
.status.warning { 
    background: #ffe3e3;
    color: #c92a2a;
}

.action-btns {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}
.btn {
    padding: 18px;
    border: none;
    border-radius: 16px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    color: white;
    text-align: center;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}
.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.16);
}
.btn-food { background: #ff6b6b; }
.btn-exercise { background: #339af0; }
.btn-other-exercise { 
    background: #f3f0ff; 
    color: #7048e8;
    border: 2px solid #e5dbff;
}
.btn-other-exercise:hover {
    background: #e5dbff;
    border-color: #d0bfff;
}
.btn-history { 
    background: #d3f9d8; 
    color: #2b8a3e;
    border: 2px solid #b2f2bb;
}
.btn-history:hover {
    background: #b2f2bb;
    border-color: #8ce99a;
}
.btn-mypage { 
    background: #fff3e0; 
    color: #e67700;
    border: 2px solid #ffe8cc;
}
.btn-mypage:hover {
    background: #ffe8cc;
    border-color: #ffd8a8;
}
.btn-admin { 
    background: #e7f5ff; 
    color: #1971c2;
    border: 2px solid #d0ebff;
}
.btn-admin:hover {
    background: #d0ebff;
    border-color: #a5d8ff;
}
.btn-weight { 
    background: #ffe0f5; 
    color: #a61e4d;
    border: 2px solid #ffc9e0;
}
.btn-weight:hover {
    background: #ffc9e0;
    border-color: #ffb3d1;
}
.btn-help { 
    background: white; 
    color: #868e96; 
    border: 2px solid #e9ecef;
    font-weight: 600;
}
.btn-help:hover {
    background: #f8f9fa;
    border-color: #ced4da;
    color: #495057;
}
.btn-backup { 
    background: #f3f0ff; 
    color: #7048e8;
    border: 2px solid #e5dbff;
}
.btn-backup:hover {
    background: #e5dbff;
    border-color: #d0bfff;
}

.section {
    background: white;
    border-radius: 20px;
    padding: 24px;
    margin-bottom: 16px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}
.section h3 { 
    font-size: 17px; 
    margin-bottom: 16px;
    color: #1a1a1a;
    font-weight: 700;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    gap: 10px;
}

.section-header h3 {
    margin-bottom: 0;
    flex: 1;
}

.font-size-controls {
    display: flex;
    gap: 4px;
    flex-shrink: 0;
}

.font-btn {
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 600;
    border: 1px solid #dee2e6;
    background: white;
    color: #868e96;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}

.font-btn:hover {
    border-color: #4c6ef5;
    color: #4c6ef5;
}

.font-btn.active {
    background: #4c6ef5;
    color: white;
    border-color: #4c6ef5;
}

/* 폰트 크기 클래스 */
body.font-small .item-name { font-size: 15px !important; }
body.font-small .item-time { font-size: 13px !important; }
body.font-small .item-cal { font-size: 17px !important; }
body.font-small .badge { font-size: 12px !important; }
body.font-small .stat-item { font-size: 13px !important; }
body.font-small .timeline-time { font-size: 12px !important; }

body.font-medium .item-name { font-size: 17px !important; }
body.font-medium .item-time { font-size: 15px !important; }
body.font-medium .item-cal { font-size: 19px !important; }
body.font-medium .badge { font-size: 13px !important; padding: 5px 11px !important; }
body.font-medium .stat-item { font-size: 14px !important; }
body.font-medium .timeline-time { font-size: 13px !important; }

body.font-large .item-name { font-size: 20px !important; }
body.font-large .item-time { font-size: 17px !important; }
body.font-large .item-cal { font-size: 22px !important; }
body.font-large .badge { font-size: 15px !important; padding: 6px 12px !important; }
body.font-large .stat-item { font-size: 16px !important; }
body.font-large .timeline-time { font-size: 15px !important; }

.item {
    background: #f8f9fa;
    padding: 12px;
    border-radius: 12px;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.2s;
}
.item:hover {
    background: #e9ecef;
    transform: translateX(4px);
}
.item-left { flex: 1; }
.item-name { 
    font-size: 15px; 
    font-weight: 600;
    color: #212529;
    margin-bottom: 2px;
}
.meal-type-badge {
    display: inline-block;
    padding: 2px 8px;
    background: #e7f5ff;
    color: #1971c2;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    margin-left: 6px;
}
.item-time { 
    font-size: 13px; 
    color: #1971c2;
    font-weight: 600;
}
.item-right {
    display: flex;
    align-items: center;
    gap: 12px;
}
.item-cal { 
    font-size: 17px; 
    font-weight: 700; 
    color: #ff6b6b;
}

.item-thumbnail {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    object-fit: cover;
    flex-shrink: 0;
    border: 2px solid #e9ecef;
}

.item-icon {
    width: 50px;
    height: 50px;
    font-size: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.btn-delete-item {
    padding: 4px 8px;
    background: #ff6b6b;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
}
.btn-delete-item:hover {
    background: #ff5252;
}
.btn-delete-item i {
    font-size: 14px;
}

.empty { 
    text-align: center; 
    padding: 40px; 
    color: #adb5bd;
    font-size: 14px;
}

/* 타임라인 디자인 */
.exercise-timeline {
    position: relative;
    padding-left: 0;
}

.timeline-item {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    position: relative;
}

.timeline-item:not(:last-child)::before {
    content: '';
    position: absolute;
    left: 19px;
    top: 48px;
    bottom: -20px;
    width: 2px;
    background: linear-gradient(to bottom, #d0ebff 0%, #a5d8ff 100%);
}

.timeline-marker {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    width: 40px;
}

.timeline-time {
    font-size: 12px;
    font-weight: 700;
    color: #495057;
    background: #f8f9fa;
    padding: 3px 6px;
    border-radius: 6px;
    white-space: nowrap;
}

.timeline-dot {
    width: 12px;
    height: 12px;
    background: linear-gradient(135deg, #1971c2 0%, #1864ab 100%);
    border-radius: 50%;
    border: 3px solid #e7f5ff;
    box-shadow: 0 2px 8px rgba(25, 113, 194, 0.3);
    position: relative;
    z-index: 1;
}

.timeline-content {
    flex: 1;
    background: #f8f9fa;
    padding: 16px;
    border-radius: 12px;
    transition: all 0.2s;
}

.timeline-content:hover {
    background: #e9ecef;
    transform: translateX(4px);
}

.btn-delete-exercise {
    padding: 4px 8px;
    background: #ff6b6b;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 11px;
    cursor: pointer;
    transition: all 0.2s;
    margin-left: auto;
}

.btn-delete-exercise:hover {
    background: #ff5252;
    transform: scale(1.05);
}

.btn-delete-exercise i {
    font-size: 12px;
}

.timeline-content:hover {
    background: #e9ecef;
    transform: translateX(4px);
}

.timeline-header {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 10px;
    align-items: center;
    padding: 4px 0;
}

.badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    vertical-align: middle;
}

.badge-food {
    background: linear-gradient(135deg, #ff6b6b 0%, #fa5252 100%);
    color: white;
}

.badge-general {
    background: linear-gradient(135deg, #339af0 0%, #1c7ed6 100%);
    color: white;
}

.badge-other {
    background: linear-gradient(135deg, #845ef7 0%, #7048e8 100%);
    color: white;
}

.badge-type {
    background: #f3f0ff;
    color: #7048e8;
    border: 1px solid #e5dbff;
}

.badge-menu {
    background: #fff3bf;
    color: #e67700;
    border: 1px solid #ffe066;
}

.badge-music {
    background: linear-gradient(135deg, #ff8fab, #ff69b4);
    color: #ffffff;
    border: none;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12.5px;
    font-weight: 600;
    display: inline-block;
}

/* MVPA 버튼 */
.btn-mvpa-result {
    padding: 0px 10px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    margin-left: 4px;
    transition: all 0.2s;
}

.btn-mvpa-result.achieved {
    background: linear-gradient(135deg, #51cf66 0%, #37b24d 100%);
}

.btn-mvpa-result:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.btn-mvpa-result.achieved:hover {
    box-shadow: 0 4px 12px rgba(81, 207, 102, 0.4);
}

.timeline-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.stat-item {
    font-size: 13px;
    color: #495057;
    background: white;
    padding: 4px 8px;
    border-radius: 6px;
    font-weight: 500;
}

/* 질런 소개 박스 */
.jilrun-intro-box {
    background: linear-gradient(135deg, #fff9e6 0%, #fff3d6 100%);
    border: 3px solid #ffd43b;
    border-radius: 20px;
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: 0 4px 16px rgba(255, 212, 59, 0.3);
    animation: fadeIn 0.6s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.intro-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px dashed #ffd43b;
}

.intro-icon {
    font-size: 28px;
    animation: run 1.5s ease-in-out infinite;
}

@keyframes run {
    0%, 100% {
        transform: translateX(0) scale(1);
    }
    25% {
        transform: translateX(-3px) scale(1.05);
    }
    75% {
        transform: translateX(3px) scale(1.05);
    }
}

.intro-title {
    font-size: 20px;
    font-weight: 800;
    color: #e67700;
    letter-spacing: -0.5px;
}

.intro-content {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.intro-text {
    font-size: 15px;
    line-height: 1.7;
    color: #495057;
    margin: 0;
    text-align: center;
}

.intro-text strong {
    color: #212529;
    font-weight: 700;
}

.intro-highlight {
    background: linear-gradient(135deg, #fff 0%, #fffaeb 100%);
    border-left: 4px solid #ffd43b;
    padding: 14px 16px;
    border-radius: 12px;
    font-size: 14px;
    line-height: 1.7;
    color: #495057;
    margin: 0;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.intro-highlight strong {
    color: #e67700;
    font-weight: 700;
}

.intro-guide {
    display: flex;
    align-items: center;
    gap: 12px;
    background: white;
    padding: 14px 16px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* 샘플 음식 카드 */
.intro-sample-food {
    background: white;
    padding: 12px;
    border-radius: 12px;
    margin: 8px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
    border: 2px solid #667eea;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
        border-color: #667eea;
    }
    50% {
        box-shadow: 0 6px 16px rgba(102, 126, 234, 0.4);
        border-color: #764ba2;
    }
}

.intro-sample-food:hover {
    background: #f8f9ff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.3);
}

.sample-food-thumbnail {
    width: 60px;
    height: 60px;
    border-radius: 10px;
    object-fit: cover;
    flex-shrink: 0;
    border: 2px solid #e9ecef;
}

.sample-food-icon {
    width: 60px;
    height: 60px;
    font-size: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.sample-food-info {
    flex: 1;
}

.sample-food-name {
    font-size: 17px;
    font-weight: 700;
    color: #212529;
    margin-bottom: 4px;
}

.sample-food-time {
    font-size: 14px;
    color: #1971c2;
    font-weight: 600;
}

.sample-food-cal {
    font-size: 18px;
    font-weight: 700;
    color: #ff6b6b;
    text-align: right;
}

/* 모바일 대응 */
@media (max-width: 600px) {
    .sample-food-thumbnail {
        width: 50px;
        height: 50px;
    }
    
    .sample-food-icon {
        width: 50px;
        height: 50px;
        font-size: 32px;
    }
    
    .sample-food-name {
        font-size: 15px;
    }
    
    .sample-food-time {
        font-size: 13px;
    }
    
    .sample-food-cal {
        font-size: 16px;
    }
}

.guide-number {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 800;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.4);
}

.guide-text {
    flex: 1;
    font-size: 14px;
    line-height: 1.6;
    color: #495057;
}

.guide-text strong {
    color: #667eea;
    font-weight: 700;
}

/* 모바일 대응 */
@media (max-width: 600px) {
    .jilrun-intro-box {
        padding: 20px;
    }
    
    .intro-icon {
        font-size: 24px;
    }
    
    .intro-title {
        font-size: 18px;
    }
    
    .intro-text {
        font-size: 14px;
    }
    
    .intro-highlight {
        font-size: 13px;
        padding: 12px 14px;
    }
    
    .intro-guide {
        padding: 12px 14px;
    }
    
    .guide-number {
        width: 28px;
        height: 28px;
        font-size: 14px;
    }
    
    .guide-text {
        font-size: 13px;
    }
}

/* 비회원 체험 배너 */
.guest-banner {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    padding: 20px 24px;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 16px;
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.3);
    animation: slideDown 0.5s ease-out;
}

.guest-banner-btn {
    width: 100%;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.guest-banner-icon {
    flex-shrink: 0;
    font-size: 40px;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
}

.guest-banner-content {
    flex: 1;
}

.guest-banner-title {
    font-size: 16px;
    font-weight: 700;
    color: white;
    margin-bottom: 6px;
}

.guest-banner-desc {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.4;
}

.guest-banner-btn {
    flex-shrink: 0;
    padding: 10px 20px;
    background: white;
    color: #667eea;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.guest-banner-btn:hover {
    background: #f8f9fa;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* 운동 시작 버튼 (질런 박스 위) */
.exercise-start-btns {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

.exercise-start-btns .btn {
    padding: 18px;
    border: none;
    border-radius: 16px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    color: white;
    text-align: center;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}

.exercise-start-btns .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.16);
}

@media (max-width: 600px) {
    .exercise-start-btns {
        gap: 10px;
        margin-bottom: 16px;
    }
}

/* 음악 선택 모달 */
.music-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 10000;
    justify-content: center;
    align-items: center;
}
.music-modal.active {
    display: flex;
}
.music-modal-content {
    background: white;
    border-radius: 20px;
    padding: 30px;
    max-width: 500px;
    width: 90%;
    max-height: 70vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}
.music-modal-header {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #212529;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.modal-close {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #868e96;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
}
.modal-close:hover {
    background: #f1f3f5;
    color: #495057;
}
.music-modal-food {
    font-size: 14px;
    color: #868e96;
    margin-bottom: 20px;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 10px;
    text-align: center;
}
.music-list {
    margin-bottom: 20px;
}
.music-item {
    padding: 16px;
    background: #f8f9fa;
    border-radius: 12px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.2s;
    border: 2px solid transparent;
}
.music-item:hover {
    background: #e9ecef;
    border-color: #4c6ef5;
}
.music-item-title {
    font-size: 15px;
    font-weight: 600;
    color: #212529;
    margin-bottom: 4px;
}
.music-item-meta {
    font-size: 12px;
    color: #868e96;
}
.music-modal-buttons {
    display: flex;
    gap: 10px;
}
.music-modal-buttons button {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}
.btn-cancel {
    background: #f1f3f5;
    color: #495057;
}
.btn-confirm {
    background: #339af0;
    color: white;
}
.music-empty {
    text-align: center;
    padding: 40px 20px;
    color: #adb5bd;
    font-size: 14px;
}

.btn-show-more {
    padding: 10px 20px;
    background: #4c6ef5;
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}
.btn-show-more:hover {
    background: #3b5bdb;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(76, 110, 245, 0.3);
}

@media (max-width: 600px) {
    #man_container {
        padding: 12px;
    }
    
    #man_container h1 { 
        font-size: 24px; 
    }
    
    .date-time-bar {
        padding: 10px 12px;
        gap: 8px;
    }
    
    .date-info {
        font-size: 14px;
    }
    
    .time-info {
        font-size: 14px;
        padding: 4px 10px;
    }
    
    .cal-value { 
        font-size: 20px; 
    }
    
    .section {
        padding: 16px;
    }
    
    .timeline-marker {
        width: 36px;
    }
    
    .timeline-item {
        gap: 10px;
    }
    
    .timeline-time {
        font-size: 10px;
        padding: 2px 5px;
    }
    
    .timeline-dot {
        width: 10px;
        height: 10px;
    }
    
    .timeline-item:not(:last-child)::before {
        left: 17px;
    }
    
    .timeline-content {
        padding: 12px;
    }
    
    .badge {
        font-size: 11px;
        padding: 3px 8px;
    }
    
    .timeline-stats {
        gap: 6px;
    }
    
    .stat-item {
        font-size: 11px;
        padding: 3px 6px;
    }
    
    .font-btn {
        font-size: 10px;
        padding: 3px 8px;
    }
    
    .guest-banner {
        padding: 20px;
    }
}

.meal-type-badge-overlay {
    position: absolute;
    top: -6px;
    left: -6px;
    font-size: 11px;
    padding: 0px 3px;
    background: #4c6ef5;
    color: white;
    border-radius: 6px;
    font-weight: 600;
    z-index: 1;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* MVPA 모달 가로 바 그라데이션 */
#mvpaTargetBar {
    background: linear-gradient(90deg, #5865f2 0%, #667eea 50%, #7c3aed 100%) !important;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

#mvpaTotalBar {
    background: linear-gradient(90deg, #fd7e14 0%, #ffa94d 50%, #fd7e14 100%);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

#mvpaCurrentBar {
    background: linear-gradient(90deg, #37b24d 0%, #51cf66 50%, #37b24d 100%) !important;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* MVPA 바 애니메이션 효과 */
#mvpaTargetBar,
#mvpaTotalBar,
#mvpaCurrentBar {
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

/* 바 위에 반짝이는 효과 (선택사항) */
#mvpaTargetBar::after,
#mvpaTotalBar::after,
#mvpaCurrentBar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.3), transparent);
    border-radius: 8px 8px 0 0;
}

/* 곡별 통계 - 노래 제목 클릭 가능 스타일 */
.badge-music-clickable {
    cursor: pointer;
    transition: all 0.2s ease;
}
.badge-music-clickable:hover {
    opacity: 0.8;
    transform: scale(1.03);
}
.badge-music-clickable:active {
    transform: scale(0.97);
}

/* 신체 정보 미입력 안내 배너 */
.profile-guide-banner {
    background: linear-gradient(135deg, #4c6ef5 0%, #5c7cfa 100%);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 4px 12px rgba(76, 110, 245, 0.3);
    animation: slideDown 0.5s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.profile-guide-content {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.profile-guide-icon {
    font-size: 40px;
    flex-shrink: 0;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

.profile-guide-text {
    flex: 1;
    color: white;
}

.profile-guide-title {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 4px;
    line-height: 1.4;
}

.profile-guide-desc {
    font-size: 13px;
    opacity: 0.9;
    line-height: 1.4;
}

.profile-guide-btn {
    width: 100%;
    padding: 14px;
    background: white;
    color: #4c6ef5;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.profile-guide-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.profile-guide-btn:active {
    transform: translateY(0);
}

@media (max-width: 600px) {
    .profile-guide-banner {
        padding: 16px;
    }
    
    .profile-guide-icon {
        font-size: 32px;
    }
    
    .profile-guide-title {
        font-size: 14px;
    }
    
    .profile-guide-desc {
        font-size: 12px;
    }
}