﻿/* =========================================================
   Workout page v2 — sequenced "ladder" redesign
   Extends the existing tokens (accent #2563eb, radius 16-18px,
   soft elevation shadows) already used across dashboard.css.
   Append this block to dashboard.css, after the existing
   "----------- Workouts---------" section, or link separately.
========================================================= */

.workout-page {
    max-width: 900px;
    margin: 30px auto;
    padding: 0 16px 120px;
}

/* ---------- Hero strip ---------- */
.workout-hero {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(120deg, #2563eb 0%, #4f46e5 100%);
    border-radius: 20px;
    padding: 22px 26px;
    color: #fff;
    margin-bottom: 22px;
    box-shadow: 0 10px 30px rgba(37, 99, 235, .25);
}

.workout-hero-date {
    display: block;
    font-size: 13px;
    opacity: .85;
    margin-bottom: 4px;
}

.workout-hero-text h2 {
    margin: 0;
    font-size: 22px;
}

.workout-hero-count {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(255, 255, 255, .16);
    border-radius: 14px;
    padding: 8px 18px;
    min-width: 64px;
}

    .workout-hero-count strong {
        font-size: 20px;
        line-height: 1.1;
    }

    .workout-hero-count span {
        font-size: 11px;
        opacity: .85;
    }

/* ---------- Day pills ---------- */
.days-nav {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 10px;
    margin-bottom: 22px;
    padding-bottom: 6px;
    scrollbar-width: thin;
}

.day-item {
    flex: 0 0 auto;
    text-decoration: none;
    color: #444;
    background: #fff;
    padding: 10px 20px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 3px 12px rgba(0,0,0,.05);
    transition: .2s;
    white-space: nowrap;
}

    .day-item:hover {
        background: #eef2ff;
        color: #2563eb;
        text-decoration: none;
    }

    .day-item.active {
        background: linear-gradient(120deg, #2563eb, #4f46e5);
        color: #fff;
        box-shadow: 0 6px 16px rgba(37, 99, 235, .35);
    }

/* ---------- Day content card ---------- */
.day-content {
    background: #fff;
    border-radius: 20px;
    padding: 26px;
    box-shadow: 0 5px 18px rgba(0,0,0,.08);
}

.day-content-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 20px;
}

    .day-content-header h4 {
        margin: 0;
        font-size: 18px;
        color: #111827;
    }

.day-content-sub {
    font-size: 13px;
    color: #9ca3af;
}

/* ---------- Exercise ladder ---------- */
.exercise-ladder {
    list-style: none;
    margin: 0;
    padding: 0;
}

.exercise-card {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    position: relative;
    padding-bottom: 22px;
}

    /* connecting line between numbered nodes, reinforcing exercise order */
    .exercise-card:not(:last-child)::before {
        content: "";
        position: absolute;
        top: 34px;
        right: 17px;
        width: 2px;
        height: calc(100% - 20px);
        background: #e5e7eb;
    }

.exercise-node {
    flex: 0 0 auto;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #eef2ff;
    color: #2563eb;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    z-index: 1;
}

.exercise-body {
    flex: 1 1 auto;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    background: #f9fafb;
    border-radius: 14px;
    padding: 14px 16px;
    transition: .2s;
}

.exercise-card:hover .exercise-body {
    background: #f3f4f6;
    transform: translateY(-1px);
}

.exercise-main h5 {
    margin: 0 0 8px;
    font-size: 15.5px;
    color: #111827;
}

.exercise-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.meta-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
}

.meta-sets {
    background: #eef2ff;
    color: #4338ca;
}

.meta-reps {
    background: #ecfdf5;
    color: #047857;
}

.meta-rest {
    background: #fff7ed;
    color: #c2410c;
    font-weight: 500;
}

/* ---------- Actions ---------- */
.exercise-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 0 0 auto;
}

.inline-form {
    display: inline-flex;
}

.icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 10px;
    background: #fff;
    color: #6b7280;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,.06);
    transition: .15s;
    text-decoration: none;
}

    .icon-btn:hover {
        background: #eef2ff;
        color: #2563eb;
        transform: translateY(-1px);
    }

.icon-btn-edit:hover {
    background: #fffbeb;
    color: #d97706;
}

.icon-btn-danger:hover {
    background: #fef2f2;
    color: #dc2626;
}

/* ---------- Empty state ---------- */
.empty-box {
    text-align: center;
    padding: 50px 20px;
    color: #9ca3af;
}

.empty-box-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 84px;
    height: 84px;
    border-radius: 50%;
    background: #eef2ff;
    color: #2563eb;
    margin-bottom: 16px;
}

.empty-box p {
    margin: 0 0 18px;
    font-size: 14.5px;
}

/* ---------- Add button ---------- */
.btn-add-workout {
    display: inline-block;
    margin-top: 25px;
    background: linear-gradient(120deg, #2563eb, #4f46e5);
    color: #fff;
    padding: 12px 26px;
    border-radius: 14px;
    text-decoration: none;
    font-weight: 600;
    box-shadow: 0 8px 20px rgba(37, 99, 235, .3);
    transition: .2s;
}

    .btn-add-workout:hover {
        color: #fff;
        text-decoration: none;
        transform: translateY(-2px);
        box-shadow: 0 10px 24px rgba(37, 99, 235, .38);
    }

/* ---------- Responsive ---------- */
@media (max-width: 640px) {
    .workout-hero {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .exercise-body {
        flex-direction: column;
        align-items: stretch;
    }

    .exercise-actions {
        justify-content: flex-end;
    }
}
/* =========================================================
   Athlete dashboard v2
   Depends on classes already defined in workout-page.css:
   .exercise-ladder, .exercise-card, .exercise-node, .exercise-order,
   .exercise-body, .exercise-main, .exercise-meta, .meta-badge,
   .meta-sets, .meta-reps, .meta-rest, .days-nav, .day-item
   Append this after workout-page.css / dashboard.css.
========================================================= */

.dashboard-body {
    max-width: 900px;
    margin: 0 auto;
    padding: 30px 16px 120px;
}

/* ---------- Hero ---------- */
.dashboard-hero {
    background: linear-gradient(120deg, #2563eb 0%, #4f46e5 100%);
    border-radius: 22px;
    padding: 24px 26px;
    color: #fff;
    margin-bottom: 22px;
    box-shadow: 0 10px 30px rgba(37, 99, 235, .25);
}

.hero-profile {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.hero-avatar {
    width: 62px;
    height: 62px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, .5);
}

.hero-date {
    display: block;
    font-size: 12.5px;
    opacity: .85;
    margin-bottom: 4px;
}

.hero-text h2 {
    margin: 0;
    font-size: 19px;
}

.hero-stats {
    display: flex;
    gap: 10px;
}

.hero-stat {
    flex: 1;
    text-align: center;
    background: rgba(255, 255, 255, .16);
    border-radius: 14px;
    padding: 10px 6px;
}

    .hero-stat strong {
        display: block;
        font-size: 19px;
        line-height: 1.2;
    }

    .hero-stat span {
        font-size: 11.5px;
        opacity: .85;
    }

/* ---------- Section blocks ---------- */
.section-block {
    background: #fff;
    border-radius: 20px;
    padding: 22px;
    margin-bottom: 20px;
    box-shadow: 0 5px 18px rgba(0,0,0,.06);
}

.section-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 10px;
}

    .section-title h3 {
        margin: 0;
        font-size: 16px;
        color: #111827;
    }

.section-icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex: 0 0 auto;
}

.icon-blue {
    background: #eef2ff;
}

.icon-green {
    background: #ecfdf5;
}

.icon-purple {
    background: #f3e8ff;
}

.icon-orange {
    background: #fff7ed;
}

.section-count {
    font-size: 12px;
    font-weight: 600;
    color: #6b7280;
    background: #f3f4f6;
    padding: 5px 12px;
    border-radius: 20px;
}

.section-empty {
    text-align: center;
    padding: 26px 10px;
    color: #9ca3af;
    font-size: 13.5px;
    background: #f9fafb;
    border-radius: 14px;
}

/* extra badge variant used on workout tempo */
.meta-tempo {
    background: #eff6ff;
    color: #1d4ed8;
}

/* video button rendered inline inside the exercise-body (dashboard variant) */
.exercise-body .video-btn {
    flex: 0 0 auto;
    font-size: 13px;
    padding: 9px 16px;
    border-radius: 10px;
    align-self: center;
}

/* ---------- Simple list rows (nutrition / supplements) ---------- */
.list-rows {
    list-style: none;
    margin: 0;
    padding: 0;
}

.list-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 13px 0;
    border-bottom: 1px solid #f0f0f0;
}

    .list-row:last-child {
        border-bottom: none;
    }

.list-row-main {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

    .list-row-main h5 {
        margin: 0;
        font-size: 14.5px;
        color: #111827;
    }

.row-tag {
    font-size: 12px;
    color: #6b7280;
    background: #f3f4f6;
    padding: 4px 10px;
    border-radius: 20px;
}

/* ---------- Weight card ---------- */
.weight-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f9fafb;
    border-radius: 16px;
    padding: 18px 20px;
}

    .weight-card strong {
        font-size: 26px;
        color: #2563eb;
        margin-inline-end: 6px;
    }

    .weight-card span:not(.row-tag) {
        color: #6b7280;
        font-size: 13px;
    }

/* ---------- Video modal refinements ---------- */
.video-modal-content {
    border-radius: 20px;
}

.video-modal video {
    border-radius: 12px;
    display: block;
}

.close-video {
    transition: .15s;
}

    .close-video:hover {
        transform: scale(1.15);
        color: #ef4444;
    }

/* ---------- Responsive ---------- */
@media (max-width: 640px) {
    .hero-profile {
        flex-direction: column;
        align-items: flex-start;
    }

    .exercise-body {
        flex-direction: column;
        align-items: stretch;
    }

        .exercise-body .video-btn {
            align-self: flex-start;
        }
}
/* =========================================================
   Layout v2 — header + bottom nav
   Shares the #2563eb → #4f46e5 gradient used across the
   workout page and dashboard hero.
========================================================= */

.dashboard-header {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    background: #fff;
    color: #111827;
    box-shadow: 0 2px 15px rgba(0,0,0,.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: opacity .15s linear;
    will-change: opacity;
}

.header-side {
    display: flex;
    align-items: center;
}

.header-actions {
    justify-content: flex-start;
}

.logo {
    justify-self: center;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-text {
    text-align: right;
}

.logo-image {
    border-radius: 10px;
}

.gym-name {
    color: #111827;
}

.logo-text small {
    color: #9ca3af;
}

.header-actions .inline-form {
    display: inline-flex;
}

.logout-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #fef2f2;
    color: #dc2626;
    border: none;
    padding: 9px 16px;
    border-radius: 12px;
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    transition: .15s;
}

    .logout-btn:hover {
        background: #fee2e2;
    }

    .logout-btn i {
        font-size: 15px;
    }

/* ---------- Bottom nav ---------- */
.bottom-nav {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100%;
    box-sizing: border-box;
    background: #fff;
    border-top: 1px solid #f0f0f0;
    box-shadow: 0 -6px 24px rgba(0,0,0,.06);
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: center;
    padding: 0 6px;
    gap: 2px;
    height: 75px;
    z-index: 1000;
    opacity: 1 !important; /* never affected by the header scroll-fade */
}

.nav-item {
    position: relative;
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    color: #9ca3af;
    height: 100%;
    transition: .2s;
}

    .nav-item i {
        font-size: 22px;
        line-height: 1;
        margin-bottom: 4px;
    }

    .nav-item span {
        font-size: 11px;
        line-height: 1;
    }

    .nav-item:hover {
        color: #2563eb;
    }

    .nav-item.active {
        color: #2563eb;
        font-weight: 600;
    }

        .nav-item.active::after {
            content: "";
            position: absolute;
            bottom: -8px;
            width: 4px;
            height: 4px;
            border-radius: 50%;
            background: #2563eb;
        }

/* ---------- Center button ---------- */
.center-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    flex: 0 0 auto;
    border-radius: 50%;
    background: linear-gradient(135deg, #2563eb, #4f46e5);
    color: #fff;
    margin-top: -30px;
    box-shadow: 0 10px 22px rgba(37, 99, 235, .4);
    transition: .2s;
}

    .center-button i {
        font-size: 24px;
    }

    .center-button:hover {
        transform: translateY(-2px) scale(1.05);
        box-shadow: 0 14px 26px rgba(37, 99, 235, .48);
    }

    .center-button.active {
        box-shadow: 0 0 0 4px #eef2ff, 0 10px 22px rgba(37, 99, 235, .4);
    }

/* ---------- Responsive: keep the 5 items on one row on narrow screens ---------- */
@media (max-width: 380px) {
    .nav-item i {
        font-size: 18px;
    }

    .nav-item span {
        font-size: 10px;
    }

    .center-button {
        width: 50px;
        height: 50px;
        margin-top: -24px;
    }

        .center-button i {
            font-size: 20px;
        }

    .logo-text small {
        display: none;
    }
}
/* =========================================================
   Auth pages (Login / Register)
   Shares the #2563eb → #4f46e5 gradient used elsewhere in the app.
========================================================= */

.auth-container {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 30px;
    background: linear-gradient(135deg, #2563eb 0%, #4f46e5 55%, #1e1b4b 100%);
}

.auth-card {
    width: 100%;
    max-width: 440px;
    background: #fff;
    border-radius: 22px;
    padding: 38px 34px;
    box-shadow: 0 25px 60px rgba(15, 23, 42, .3);
}

.auth-card-wide {
    max-width: 560px;
}

.auth-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 18px;
}

    .auth-brand span {
        font-weight: 700;
        color: #111827;
        font-size: 15px;
    }

.auth-logo {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    object-fit: cover;
}

.auth-card h2 {
    text-align: center;
    margin: 0 0 6px;
    font-size: 21px;
    color: #111827;
}

.auth-subtitle {
    text-align: center;
    color: #9ca3af;
    font-size: 13.5px;
    margin: 0 0 28px;
}

.form-group {
    margin-bottom: 18px;
}

    .form-group label {
        display: block;
        font-size: 13.5px;
        color: #374151;
        margin-bottom: 7px;
        font-weight: 500;
    }

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

/* ---------- Icon input ---------- */
.input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    inset-inline-start: 14px;
    display: flex;
    color: #9ca3af;
    pointer-events: none;
    transition: color .15s;
}

.input-wrap .form-control {
    width: 100%;
    height: 48px;
    border: 1.5px solid #e5e7eb;
    border-radius: 12px;
    padding-inline-start: 42px;
    padding-inline-end: 14px;
    font-size: 14.5px;
    background: #f9fafb;
    transition: .15s;
    box-sizing: border-box;
}

    .input-wrap .form-control:focus {
        outline: none;
        border-color: #2563eb;
        background: #fff;
        box-shadow: 0 0 0 4px #eef2ff;
    }

.input-wrap:focus-within .input-icon {
    color: #2563eb;
}

.toggle-password {
    position: absolute;
    inset-inline-end: 12px;
    border: none;
    background: none;
    color: #9ca3af;
    cursor: pointer;
    display: flex;
    align-items: center;
    padding: 4px;
    transition: color .15s;
}

    .toggle-password:hover {
        color: #2563eb;
    }

/* password fields need room for the toggle button on the opposite side of the icon */
#Password, #ConfirmPassword {
    padding-inline-end: 40px;
}

/* ---------- Remember me ---------- */
.auth-remember {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 22px;
}

    .auth-remember .form-check-input {
        width: 17px;
        height: 17px;
        accent-color: #2563eb;
        cursor: pointer;
        margin: 0;
    }

    .auth-remember .form-check-label {
        font-size: 13.5px;
        color: #6b7280;
        cursor: pointer;
    }

/* ---------- Submit button ---------- */
.btn-auth {
    width: 100%;
    height: 50px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(120deg, #2563eb, #4f46e5);
    color: #fff;
    font-size: 15.5px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(37, 99, 235, .3);
    transition: .2s;
}

    .btn-auth:hover {
        transform: translateY(-1px);
        box-shadow: 0 12px 28px rgba(37, 99, 235, .38);
    }

    .btn-auth:active {
        transform: translateY(0);
    }

/* ---------- Footer link ---------- */
.auth-footer {
    text-align: center;
    margin-top: 22px;
    font-size: 13.5px;
    color: #6b7280;
}

    .auth-footer a {
        color: #2563eb;
        font-weight: 600;
        text-decoration: none;
        margin-inline-start: 4px;
    }

        .auth-footer a:hover {
            text-decoration: underline;
        }

/* ---------- Validation ---------- */
.text-danger {
    display: block;
    font-size: 12.5px;
    margin-top: 5px;
}

/* ---------- Responsive ---------- */
@media (max-width: 480px) {
    .auth-card, .auth-card-wide {
        padding: 30px 22px;
        border-radius: 18px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
}
/* =========================================================
   Athlete profile display page
   Reuses .section-block/.section-head/.section-icon/.row-tag
   from dashboard-home.css.
========================================================= */

/* ---------- Hero ---------- */
.profile-hero {
    text-align: center;
    background: linear-gradient(120deg, #2563eb 0%, #4f46e5 100%);
    border-radius: 22px;
    padding: 30px 20px 26px;
    color: #fff;
    margin: 22px 0;
    box-shadow: 0 10px 30px rgba(37, 99, 235, .25);
}

.profile-hero-avatar {
    width: 108px;
    height: 108px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(255,255,255,.6);
    box-shadow: 0 6px 20px rgba(0,0,0,.2);
    margin-bottom: 14px;
}

.profile-hero h2 {
    margin: 0 0 12px;
    font-size: 20px;
}

.profile-hero-tags {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
}

    .profile-hero-tags .row-tag {
        background: rgba(255,255,255,.18);
        color: #fff;
        display: inline-flex;
        align-items: center;
        gap: 6px;
    }

/* ---------- Stat grid ---------- */
.stat-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.stat-card {
    text-align: center;
    background: #f9fafb;
    border-radius: 16px;
    padding: 18px 10px;
}

    .stat-card i {
        font-size: 22px;
        color: #2563eb;
        margin-bottom: 8px;
        display: block;
    }

    .stat-card strong {
        display: block;
        font-size: 20px;
        color: #111827;
    }

    .stat-card span {
        font-size: 12px;
        color: #9ca3af;
    }

/* ---------- BMI ---------- */
.bmi-pill {
    font-size: 12px;
    font-weight: 700;
    padding: 5px 14px;
    border-radius: 20px;
}

.bmi-under {
    background: #eff6ff;
    color: #1d4ed8;
}

.bmi-normal {
    background: #ecfdf5;
    color: #047857;
}

.bmi-over {
    background: #fff7ed;
    color: #c2410c;
}

.bmi-obese {
    background: #fef2f2;
    color: #dc2626;
}

.bmi-value {
    font-size: 34px;
    font-weight: 700;
    color: #111827;
    text-align: center;
    margin: 10px 0 16px;
}

.bmi-bar {
    position: relative;
    height: 10px;
    border-radius: 6px;
    background: linear-gradient(90deg, #3b82f6 0%, #22c55e 35%, #f97316 65%, #ef4444 100%);
    margin-bottom: 14px;
}

.bmi-bar-marker {
    position: absolute;
    top: -4px;
    width: 4px;
    height: 18px;
    border-radius: 2px;
    background: #111827;
    box-shadow: 0 0 0 3px #fff;
}

.bmi-hint {
    text-align: center;
    font-size: 13px;
    color: #6b7280;
    margin: 0;
}

    .bmi-hint strong {
        color: #111827;
    }

/* ---------- Coach actions ---------- */
.profile-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.profile-edit-btn {
    flex: 1 1 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    height: auto;
    padding: 14px;
}

    .profile-edit-btn:hover {
        color: #fff;
    }

.profile-delete-btn {
    flex: 1 1 auto;
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #fef2f2;
    color: #dc2626;
    border: none;
    padding: 14px;
    border-radius: 12px;
    font-size: 14.5px;
    font-weight: 600;
    cursor: pointer;
    transition: .15s;
}

    .profile-delete-btn:hover {
        background: #fee2e2;
    }

/* ---------- Responsive ---------- */
@media (max-width: 480px) {
    .stat-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .profile-actions {
        flex-direction: column;
    }

    .profile-edit-btn {
        width: 100%;
    }
}
/* =========================================================
   Athlete profile forms (Create / Edit)
   Reuses .input-wrap/.input-icon/.form-control/.btn-auth from
   auth.css, and .section-block/.section-head/.section-icon
   from dashboard-home.css.
========================================================= */

.profile-form-page {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 16px 40px;
}

.page-hero {
    background: linear-gradient(120deg, #2563eb 0%, #4f46e5 100%);
    border-radius: 20px;
    padding: 22px 26px;
    color: #fff;
    margin: 22px 0;
    box-shadow: 0 10px 30px rgba(37, 99, 235, .25);
}

    .page-hero h2 {
        margin: 0 0 4px;
        font-size: 20px;
    }

    .page-hero p {
        margin: 0;
        font-size: 13px;
        opacity: .85;
    }

/* ---------- Field grid ---------- */
.field-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px 20px;
}

.form-group.full {
    grid-column: 1 / -1;
}

.input-wrap-textarea .input-icon {
    top: 14px;
    align-items: flex-start;
}

.input-wrap-textarea textarea.form-control {
    height: 90px;
    padding-top: 12px;
    resize: vertical;
}

.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239ca3af' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left 14px center;
    background-size: 16px;
}

/* ---------- Medical toggles ---------- */
.medical-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.medical-item {
    padding: 14px 0;
    border-bottom: 1px solid #f0f0f0;
}

    .medical-item:last-child {
        border-bottom: none;
    }

.switch-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.switch-label {
    font-size: 14.5px;
    color: #374151;
    font-weight: 500;
}

.switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 25px;
    flex: 0 0 auto;
}

    .switch input {
        opacity: 0;
        width: 0;
        height: 0;
    }

.slider {
    position: absolute;
    inset: 0;
    background: #e5e7eb;
    border-radius: 30px;
    cursor: pointer;
    transition: .2s;
}

    .slider::before {
        content: "";
        position: absolute;
        width: 19px;
        height: 19px;
        left: 3px;
        bottom: 3px;
        background: #fff;
        border-radius: 50%;
        transition: .2s;
        box-shadow: 0 2px 6px rgba(0,0,0,.15);
    }

.switch input:checked + .slider {
    background: #2563eb;
}

    .switch input:checked + .slider::before {
        transform: translateX(-19px);
    }

/* rtl-safe: translate direction flips because start/end padding is mirrored by dir=rtl,
   but transform is physical, so flip explicitly for rtl documents */
html[dir="rtl"] .switch input:checked + .slider::before {
    transform: translateX(19px);
}

.medical-desc {
    display: block;
    width: 100%;
    max-height: 0;
    opacity: 0;
    margin-top: 0;
    padding: 0 14px;
    border: none;
    overflow: hidden;
    transition: max-height .25s ease, opacity .2s ease, margin-top .25s ease, padding .25s ease;
    box-sizing: border-box;
}

    .medical-desc.open {
        max-height: 140px;
        opacity: 1;
        margin-top: 12px;
        padding: 12px 14px;
        border: 1.5px solid #e5e7eb;
        border-radius: 12px;
        background: #f9fafb;
    }

/* ---------- Photo upload ---------- */
.photo-upload {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.photo-preview-img {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 4px 15px rgba(0,0,0,.1);
    flex: 0 0 auto;
}

.photo-dropzone {
    flex: 1 1 220px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-align: center;
    border: 1.5px dashed #d1d5db;
    border-radius: 14px;
    padding: 20px;
    color: #6b7280;
    font-size: 13px;
    cursor: pointer;
    transition: .15s;
}

    .photo-dropzone i {
        font-size: 26px;
        color: #2563eb;
    }

    .photo-dropzone:hover {
        border-color: #2563eb;
        background: #f5f7ff;
    }

.photo-input {
    display: none;
}

/* submit button spacing on this page */
.profile-form-page > form > .btn-auth {
    margin: 8px 0 30px;
}

/* ---------- Responsive ---------- */
@media (max-width: 640px) {
    .field-grid {
        grid-template-columns: 1fr;
    }
}
/* =========================================================
   Coach-facing pages: athlete hub + athlete roster
   Reuses .profile-hero/.profile-hero-avatar/.profile-hero-tags/
   .row-tag from athlete-profile.css, .page-hero from
   profile-form.css, .empty-box/.empty-box-icon/.btn-add-workout
   from workout-page.css.
========================================================= */

.athlete-hub {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 16px 40px;
}

.profile-hero-avatar-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, .18);
    font-size: 40px;
}

/* ---------- Module grid ---------- */
.module-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.module-tile {
    background: #fff;
    border-radius: 18px;
    padding: 26px 18px;
    text-align: center;
    text-decoration: none;
    color: #111827;
    box-shadow: 0 5px 18px rgba(0,0,0,.06);
    transition: .2s;
}

    .module-tile:hover {
        transform: translateY(-4px);
        box-shadow: 0 10px 24px rgba(0,0,0,.1);
        color: #111827;
        text-decoration: none;
    }

    .module-tile h4 {
        margin: 4px 0 6px;
        font-size: 15px;
    }

.module-desc {
    font-size: 12.5px;
    color: #9ca3af;
}

.module-soon {
    color: #f59e0b;
    font-weight: 600;
}

.module-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    border-radius: 16px;
    font-size: 24px;
    margin-bottom: 10px;
}

.module-icon-blue {
    background: #eef2ff;
    color: #2563eb;
}

.module-icon-green {
    background: #ecfdf5;
    color: #16a34a;
}

.module-icon-orange {
    background: #fff7ed;
    color: #c2410c;
}

.module-icon-purple {
    background: #f3e8ff;
    color: #7c3aed;
}

.module-tile-disabled {
    opacity: .55;
    pointer-events: none;
}

/* ---------- Coach dashboard ---------- */
.coach-dashboard {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 16px 40px;
}

.coach-hero {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

    .coach-hero p {
        margin: 4px 0 0;
        font-size: 13px;
        opacity: .85;
    }

.hero-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, .18);
    color: #fff;
    text-decoration: none;
    padding: 10px 18px;
    border-radius: 12px;
    font-size: 13.5px;
    font-weight: 600;
    transition: .15s;
    white-space: nowrap;
}

    .hero-btn:hover {
        background: rgba(255, 255, 255, .28);
        color: #fff;
        text-decoration: none;
    }

.quick-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    color: #2563eb;
    text-decoration: none;
    padding: 12px 18px;
    border-radius: 12px;
    font-size: 13.5px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(0,0,0,.06);
    margin-bottom: 22px;
    transition: .15s;
}

    .quick-link:hover {
        color: #2563eb;
        text-decoration: none;
        transform: translateY(-2px);
        box-shadow: 0 6px 18px rgba(0,0,0,.1);
    }

/* ---------- Athlete list ---------- */
.athlete-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.athlete-list-card {
    display: flex;
    align-items: center;
    gap: 14px;
    background: #fff;
    border-radius: 16px;
    padding: 16px 18px;
    box-shadow: 0 4px 15px rgba(0,0,0,.06);
    transition: .2s;
}

    .athlete-list-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 20px rgba(0,0,0,.1);
    }

.athlete-list-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    object-fit: cover;
    flex: 0 0 auto;
    border: 2px solid #e5e7eb;
}

.athlete-list-avatar-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eef2ff;
    color: #2563eb;
    font-size: 20px;
}

.athlete-list-info {
    flex: 1 1 auto;
    min-width: 0;
}

    .athlete-list-info h4 {
        margin: 0 0 4px;
        font-size: 15px;
        color: #111827;
    }

.athlete-list-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 14px;
    font-size: 12.5px;
    color: #9ca3af;
}

    .athlete-list-meta span {
        display: inline-flex;
        align-items: center;
        gap: 4px;
        white-space: nowrap;
    }

.athlete-view-btn {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #eef2ff;
    color: #2563eb;
    text-decoration: none;
    padding: 9px 14px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    transition: .15s;
    white-space: nowrap;
}

    .athlete-view-btn:hover {
        background: #2563eb;
        color: #fff;
        text-decoration: none;
    }

/* ---------- Responsive ---------- */
@media (max-width: 560px) {
    .athlete-list-card {
        flex-wrap: wrap;
    }

    .athlete-view-btn {
        width: 100%;
        justify-content: center;
        margin-top: 6px;
    }

    .coach-hero {
        flex-direction: column;
        align-items: flex-start;
    }

    .hero-btn {
        width: 100%;
        justify-content: center;
    }
}
/* =========================================================
   Coach notes (Index timeline + Create/Edit forms)
   Reuses .page-hero (profile-form.css), .icon-btn/.empty-box/
   .btn-add-workout (workout-page.css), .row-tag (dashboard-home.css),
   .input-wrap/.form-control/.btn-auth (auth.css),
   .section-block (dashboard-home.css).
========================================================= */

.notes-page,
.notes-form-page {
    max-width: 780px;
    margin: 0 auto;
    padding: 0 16px 40px;
}

.notes-hero {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

    .notes-hero p {
        margin: 4px 0 0;
        font-size: 13px;
        opacity: .85;
    }

/* ---------- Timeline ---------- */
.notes-timeline {
    list-style: none;
    margin: 22px 0 0;
    padding: 0;
}

.note-card {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    position: relative;
    padding-bottom: 22px;
}

    .note-card:not(:last-child)::before {
        content: "";
        position: absolute;
        top: 34px;
        right: 17px;
        width: 2px;
        height: calc(100% - 20px);
        background: #e5e7eb;
    }

.note-node {
    flex: 0 0 auto;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #eef2ff;
    color: #2563eb;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    z-index: 1;
}

.note-body {
    flex: 1 1 auto;
    background: #fff;
    border-radius: 16px;
    padding: 16px 18px;
    box-shadow: 0 4px 15px rgba(0,0,0,.06);
}

.note-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.note-date {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    font-weight: 600;
    color: #6b7280;
    background: #f3f4f6;
    padding: 4px 10px;
    border-radius: 20px;
}

.note-actions {
    display: flex;
    gap: 6px;
}

.note-text {
    margin: 0;
    color: #374151;
    font-size: 14px;
    line-height: 1.9;
    white-space: pre-wrap;
}

/* ---------- Forms ---------- */
.notes-textarea {
    height: 140px;
    padding-top: 12px;
    resize: vertical;
}

.notes-form-page .section-block .form-group {
    margin-bottom: 20px;
}

.notes-form-actions {
    display: flex;
    gap: 12px;
}

    .notes-form-actions .btn-auth {
        flex: 1 1 auto;
    }

.btn-cancel {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 24px;
    height: 50px;
    border-radius: 12px;
    background: #f3f4f6;
    color: #374151;
    font-size: 14.5px;
    font-weight: 600;
    text-decoration: none;
    transition: .15s;
}

    .btn-cancel:hover {
        background: #e5e7eb;
        color: #374151;
        text-decoration: none;
    }

/* ---------- Responsive ---------- */
@media (max-width: 480px) {
    .notes-form-actions {
        flex-direction: column;
    }

    .btn-cancel {
        width: 100%;
    }
}
/* =========================================================
   Exercise library (Index grid + Create/Edit forms)
   Reuses .page-hero/.coach-hero/.hero-btn (coach-pages.css),
   .empty-box/.btn-add-workout/.icon-btn (workout-page.css),
   .input-wrap/.form-control/.btn-auth (auth.css),
   .section-block/.form-group (dashboard-home.css / profile-form.css),
   .photo-input (profile-form.css).
========================================================= */

.exercises-page,
.exercise-form-page {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 16px 40px;
}

/* ---------- Grid ---------- */
.exercise-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 18px;
    margin-top: 22px;
}

.exercise-tile {
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 5px 18px rgba(0,0,0,.06);
    display: flex;
    flex-direction: column;
    transition: .2s;
}

    .exercise-tile:hover {
        transform: translateY(-3px);
        box-shadow: 0 10px 24px rgba(0,0,0,.1);
    }

.exercise-tile-media {
    background: #111827;
    aspect-ratio: 16 / 10;
}

    .exercise-tile-media video {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

.exercise-tile-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: #6b7280;
    font-size: 12.5px;
}

    .exercise-tile-placeholder i {
        font-size: 26px;
    }

.exercise-tile-body {
    padding: 14px 16px 6px;
    flex: 1 1 auto;
}

    .exercise-tile-body h4 {
        margin: 0 0 6px;
        font-size: 15px;
        color: #111827;
    }

.exercise-tile-desc {
    margin: 0;
    font-size: 12.5px;
    color: #9ca3af;
    line-height: 1.7;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.exercise-tile-actions {
    display: flex;
    gap: 8px;
    padding: 12px 16px 16px;
}

    .exercise-tile-actions .icon-btn {
        flex: 1 1 auto;
        width: auto;
        height: 36px;
        padding: 0 10px;
        gap: 6px;
        font-size: 12.5px;
        font-weight: 600;
    }

        .exercise-tile-actions .icon-btn span {
            display: inline;
        }

/* ---------- Video dropzone (Create/Edit) ---------- */
.video-dropzone {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-align: center;
    border: 1.5px dashed #d1d5db;
    border-radius: 14px;
    padding: 26px 16px;
    color: #6b7280;
    font-size: 13px;
    cursor: pointer;
    transition: .15s;
}

    .video-dropzone i {
        font-size: 26px;
        color: #2563eb;
    }

    .video-dropzone:hover {
        border-color: #2563eb;
        background: #f5f7ff;
    }

.video-file-name {
    font-size: 12.5px;
    font-weight: 600;
    color: #2563eb;
}

.existing-video {
    border-radius: 14px;
    overflow: hidden;
    background: #111827;
    max-width: 320px;
}

    .existing-video video {
        width: 100%;
        display: block;
    }

/* ---------- Responsive ---------- */
@media (max-width: 480px) {
    .exercise-tile-actions .icon-btn span {
        display: none;
    }
}
/* =========================================================
   Nutrition meal pages (Index list + Create/Edit forms)
   Reuses .page-hero/.section-block/.section-head/.section-icon/
   .section-count/.section-empty/.row-tag (dashboard-home.css,
   profile-form.css), .icon-btn/.btn-add-workout (workout-page.css),
   .input-wrap/.form-control/.btn-auth (auth.css),
   .notes-form-actions/.btn-cancel (coach-notes.css).
========================================================= */

.nutrition-page,
.nutrition-form-page {
    max-width: 780px;
    margin: 0 auto;
    padding: 0 16px 40px;
}

/* ---------- Meal pill nav (same look as the workout day-nav) ---------- */
.meal-nav {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 10px;
    margin-bottom: 22px;
    padding-bottom: 6px;
    scrollbar-width: thin;
}

.meal-item {
    flex: 0 0 auto;
    text-decoration: none;
    color: #444;
    background: #fff;
    padding: 10px 20px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 3px 12px rgba(0,0,0,.05);
    transition: .2s;
    white-space: nowrap;
}

    .meal-item:hover {
        background: #eef2ff;
        color: #2563eb;
        text-decoration: none;
    }

    .meal-item.active {
        background: linear-gradient(120deg, #2563eb, #4f46e5);
        color: #fff;
        box-shadow: 0 6px 16px rgba(37, 99, 235, .35);
    }

/* ---------- Food list ---------- */
.food-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.food-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 14px 0;
    border-bottom: 1px solid #f0f0f0;
}

    .food-row:last-child {
        border-bottom: none;
    }

.food-row-main {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    min-width: 0;
}

    .food-row-main h5 {
        margin: 0;
        font-size: 14.5px;
        color: #111827;
    }

.food-row-actions {
    display: flex;
    gap: 6px;
    flex: 0 0 auto;
}

/* ---------- Select styling (reuses .form-select arrow from profile-form.css) ---------- */
.input-wrap select.form-control {
    appearance: none;
    cursor: pointer;
}

/* ---------- Responsive ---------- */
@media (max-width: 480px) {
    .food-row {
        flex-wrap: wrap;
    }

    .food-row-actions {
        width: 100%;
        justify-content: flex-end;
    }
}
/* =========================================================
   Supplement pages (Index list + Create/Edit forms)
   Reuses .page-hero/.section-block/.meta-badge/.form-row
   (dashboard-home.css, profile-form.css, auth.css),
   .empty-box/.empty-box-icon/.btn-add-workout/.icon-btn (workout-page.css),
   .input-wrap/.form-control/.btn-auth (auth.css).
========================================================= */

.supplements-page,
.supplement-form-page {
    max-width: 780px;
    margin: 0 auto;
    padding: 0 16px 40px;
}

/* ---------- Supplement list ---------- */
.supplement-list {
    list-style: none;
    margin: 0 0 20px;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.supplement-card {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    background: #fff;
    border-radius: 16px;
    padding: 18px;
    box-shadow: 0 4px 15px rgba(0,0,0,.06);
}

.supplement-icon {
    flex: 0 0 auto;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: #f3e8ff;
    color: #7c3aed;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.supplement-body {
    flex: 1 1 auto;
    min-width: 0;
}

    .supplement-body h5 {
        margin: 0 0 8px;
        font-size: 15px;
        color: #111827;
    }

.supplement-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 8px;
}

.supplement-desc {
    margin: 0;
    font-size: 13px;
    color: #6b7280;
    line-height: 1.8;
}

.supplement-actions {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* ---------- Responsive ---------- */
@media (max-width: 480px) {
    .supplement-card {
        flex-wrap: wrap;
    }

    .supplement-actions {
        flex-direction: row;
        width: 100%;
        justify-content: flex-end;
    }
}
/* =========================================================
   Weight history page (Index chart+list, Create/Edit forms)
   Reuses .page-hero/.section-block/.section-head/.section-icon/
   .row-tag (dashboard-home.css, profile-form.css),
   .empty-box/.btn-add-workout/.icon-btn (workout-page.css),
   .input-wrap/.form-control/.btn-auth/.form-row (auth.css).
========================================================= */

.weight-page,
.weight-form-page {
    max-width: 780px;
    margin: 0 auto;
    padding: 0 16px 40px;
}

/* ---------- Trend chart ---------- */
.weight-chart-card {
    margin-bottom: 20px;
}

.weight-chart {
    width: 100%;
    height: 160px;
    display: block;
    overflow: visible;
}

.weight-chart-area {
    fill: rgba(37, 99, 235, .08);
    stroke: none;
}

.weight-chart-line {
    fill: none;
    stroke: #2563eb;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.weight-chart-dot {
    fill: #fff;
    stroke: #2563eb;
    stroke-width: 2.5;
}

/* ---------- Record list ---------- */
.weight-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.weight-row {
    background: #fff;
    border-radius: 16px;
    padding: 16px 18px;
    box-shadow: 0 4px 15px rgba(0,0,0,.06);
    position: relative;
}

.weight-row-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.weight-row-value {
    font-size: 19px;
    font-weight: 700;
    color: #111827;
}

    .weight-row-value small {
        font-size: 12px;
        font-weight: 500;
        color: #9ca3af;
        margin-inline-start: 3px;
    }

.weight-row-note {
    margin: 8px 0 0;
    font-size: 13px;
    color: #6b7280;
    line-height: 1.8;
}

.weight-row-actions {
    position: absolute;
    top: 14px;
    inset-inline-start: 14px;
    display: flex;
    gap: 6px;
}

/* room so the action buttons never overlap the date tag on narrow cards */
.weight-row-main {
    padding-inline-start: 78px;
}

/* ---------- Responsive ---------- */
@media (max-width: 480px) {
    .weight-row-main {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
        padding-inline-start: 0;
        padding-inline-end: 78px;
    }

    .weight-row-actions {
        top: 16px;
        inset-inline-start: auto;
        inset-inline-end: 16px;
    }
}
/* =========================================================
   Dashboard (Today's workouts + week days + coach note)
   Reuses .page-hero (profile-form.css), .section-block
   (dashboard-home.css).
========================================================= */

.dashboard-page {
    max-width: 780px;
    margin: 0 auto;
    padding: 0 16px 40px;
}

.section-title {
    margin: 0 0 14px;
    font-size: 15px;
    font-weight: 700;
    color: #111827;
}

/* ---------- Workouts ---------- */
.workout-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.workout-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    background: #fff;
    border-radius: 16px;
    padding: 14px 16px;
    box-shadow: 0 4px 15px rgba(0,0,0,.06);
}

    .workout-card .exercise-info h4 {
        margin: 0 0 4px;
        font-size: 14.5px;
        font-weight: 700;
        color: #111827;
    }

    .workout-card .exercise-info span {
        font-size: 12.5px;
        color: #6b7280;
    }

.video-btn {
    flex: 0 0 auto;
    border: none;
    background: #eef2ff;
    color: #2563eb;
    font-size: 12.5px;
    font-weight: 600;
    padding: 8px 14px;
    border-radius: 20px;
    cursor: pointer;
    transition: .15s;
}

    .video-btn:hover {
        background: #e0e7ff;
    }

/* ---------- Days slider ---------- */
.days-slider {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 4px;
}

.day-chip {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    min-width: 64px;
    padding: 12px 8px;
    border-radius: 14px;
    background: #f3f4f6;
    color: #374151;
}

    .day-chip strong {
        font-size: 13px;
    }

    .day-chip small {
        font-size: 11px;
        opacity: .75;
    }

    .day-chip.active {
        background: #2563eb;
        color: #fff;
    }

/* ---------- Coach note ---------- */
.coach-note {
    margin-top: 22px;
    background: #eef2ff;
    border-radius: 16px;
    padding: 16px 18px;
}

.coach-note-head {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

    .coach-note-head h4 {
        margin: 0;
        font-size: 14px;
        font-weight: 700;
        color: #1e3a8a;
    }

.coach-icon {
    font-size: 16px;
}

.coach-note-text {
    margin: 0;
    font-size: 13.5px;
    line-height: 1.9;
    color: #374151;
}

/* ---------- Responsive ---------- */
@media (max-width: 480px) {
    .workout-card {
        flex-direction: column;
        align-items: flex-start;
    }

    .video-btn {
        align-self: flex-end;
    }
}

.food-page {
    max-width: 780px;
    margin: 0 auto;
    padding: 0 16px 40px;
}

/* ---------- Progress bar ---------- */
.food-progress {
    height: 8px;
    border-radius: 20px;
    background: #e5e7eb;
    overflow: hidden;
}

.food-progress-bar {
    height: 100%;
    background: #2563eb;
    border-radius: 20px;
    transition: width .3s;
}

/* ---------- Meal timeline ---------- */
.meal-timeline {
    list-style: none;
    margin: 22px 0 0;
    padding: 0;
}

.meal-card {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    position: relative;
    padding-bottom: 22px;
}

    .meal-card:not(:last-child)::before {
        content: "";
        position: absolute;
        top: 34px;
        right: 17px;
        width: 2px;
        height: calc(100% - 20px);
        background: #e5e7eb;
    }

.meal-node {
    flex: 0 0 auto;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #eef2ff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    z-index: 1;
}

.meal-body {
    flex: 1 1 auto;
    background: #fff;
    border-radius: 16px;
    padding: 16px 18px;
    box-shadow: 0 4px 15px rgba(0,0,0,.06);
}

.meal-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

    .meal-head h4 {
        margin: 0;
        font-size: 14.5px;
        font-weight: 700;
        color: #111827;
    }

.meal-time {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    font-weight: 600;
    color: #6b7280;
    background: #f3f4f6;
    padding: 4px 10px;
    border-radius: 20px;
}

.meal-items {
    margin: 0;
    padding: 0 18px 0 0;
    color: #374151;
    font-size: 13.5px;
    line-height: 1.9;
}

.progress-page {
    max-width: 780px;
    margin: 0 auto;
    padding: 0 16px 40px;
}

.section-title {
    margin: 0 0 14px;
    font-size: 15px;
    font-weight: 700;
    color: #111827;
}

/* ---------- Summary grid ---------- */
.summary-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin: 22px 0;
}

.summary-card {
    background: #fff;
    border-radius: 16px;
    padding: 18px 14px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,.06);
}

    .summary-card h3 {
        margin: 0 0 4px;
        font-size: 20px;
        font-weight: 800;
        color: #2563eb;
    }

    .summary-card span {
        font-size: 12.5px;
        color: #6b7280;
    }

/* ---------- Chart placeholder ---------- */
.chart-placeholder {
    height: 160px;
    border-radius: 14px;
    background: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
    font-size: 13px;
}

/* ---------- Records ---------- */
.record-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.record-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f9fafb;
    border-radius: 12px;
    padding: 12px 14px;
    font-size: 13.5px;
    color: #374151;
}

    .record-row strong {
        color: #111827;
    }

/* ---------- Coach note ---------- */
.coach-note {
    margin-top: 22px;
    background: #eef2ff;
    border-radius: 16px;
    padding: 16px 18px;
}

.coach-note-head {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

    .coach-note-head h4 {
        margin: 0;
        font-size: 14px;
        font-weight: 700;
        color: #1e3a8a;
    }

.coach-icon {
    font-size: 16px;
}

.coach-note-text {
    margin: 0;
    font-size: 13.5px;
    line-height: 1.9;
    color: #374151;
}

/* ---------- Responsive ---------- */
@media (max-width: 480px) {
    .summary-grid {
        grid-template-columns: 1fr 1fr;
    }
}
/* =========================================================
   Athlete navigation (coach-side tab bar)
   Reuses the pill color language of .row-tag (dashboard-home.css).
========================================================= */

.athlete-nav {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 4px 0 18px;
    margin-bottom: 4px;
}

    .athlete-nav::-webkit-scrollbar {
        display: none;
    }

.athlete-nav-item {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 16px;
    border-radius: 20px;
    background: #f3f4f6;
    color: #374151;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: .15s;
}

    .athlete-nav-item:hover {
        background: #e5e7eb;
        color: #374151;
        text-decoration: none;
    }

    .athlete-nav-item.active {
        background: #2563eb;
        color: #fff;
    }

.athlete-nav-icon {
    font-size: 14px;
}

/* ---------- Responsive ---------- */
@media (max-width: 480px) {
    .athlete-nav-item {
        padding: 8px 12px;
        font-size: 12.5px;
    }
}

/*----------------logo---------------*/
.logo-image {
    width: 80px;
    height: 80px;
    object-fit: contain;
    border-radius: 8px; 
}



.video-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.75);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

.video-box {
    width: 90%;
    max-width: 700px;
    background: #fff;
    border-radius: 15px;
    padding: 15px;
    position: relative;
}

    .video-box video {
        width: 100%;
        border-radius: 10px;
    }

.close-video {
    position: absolute;
    top: 8px;
    left: 12px;
    font-size: 30px;
    cursor: pointer;
    color: #333;
} 