#my-profile-page {
    background-color: #f8f9fa;
    min-height: 100vh;
}

#my-profile-page .profile-stat-strip {
    display: flex;
    flex-wrap: wrap;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 1.5rem;
}

#my-profile-page .profile-stat {
    flex: 1;
    min-width: 120px;
    text-align: center;
    padding: 1.25rem 0.5rem;
    color: white;
}

#my-profile-page .profile-stat-value {
    font-size: 1.5rem;
    font-weight: 700;
}

#my-profile-page .profile-stat-label {
    font-size: 0.8rem;
    opacity: 0.9;
    margin-top: 0.25rem;
}

#my-profile-page .profile-basic-info {
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

#my-profile-page .profile-field-label {
    font-size: 0.75rem;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

#my-profile-page .profile-field-value {
    font-size: 1rem;
    color: #333;
    margin-top: 0.15rem;
}

/* Grade Incharge highlight (2026-09-10) — stands out from the plain field
   grid as its own full-width amber card, matching the accent color already
   used for other "assigned person" callouts on this page (attendance
   streak cards' accent-amber variant). */
#my-profile-page .profile-field-highlight {
    grid-column: 1 / -1;
    background: linear-gradient(135deg, #fff8ec, #fff3d9);
    border: 1px solid #f0cf80;
    border-radius: 8px;
    padding: 0.75rem 1rem;
}

#my-profile-page .profile-field-highlight .profile-field-label {
    color: #a5750f;
    font-weight: 700;
}

#my-profile-page .profile-field-highlight .profile-field-label i {
    margin-right: 0.35rem;
}

#my-profile-page .profile-field-highlight .profile-field-value {
    font-weight: 600;
    color: #7a5b0a;
    line-height: 1.5;
}

#my-profile-page .my-profile-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

#my-profile-page .my-profile-tab {
    background: white;
    border: 2px solid #e0e0e0;
    color: #667eea;
    padding: 0.6rem 1.1rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

#my-profile-page .my-profile-tab.active {
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-color: transparent;
    color: white;
}

#my-profile-page .my-profile-tab-panel {
    display: none;
}

#my-profile-page .my-profile-tab-panel.active {
    display: block;
}

#my-profile-page .profile-list-card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 1rem 1.25rem;
    margin-bottom: 0.75rem;
}

#my-profile-page .profile-list-title {
    font-weight: 600;
    color: #333;
}

#my-profile-page .profile-list-subtitle {
    font-size: 0.85rem;
    color: #777;
    margin-top: 0.2rem;
}

#my-profile-page .profile-section-heading {
    font-weight: 700;
    color: #444;
    margin: 1rem 0 0.5rem;
    font-size: 0.95rem;
}

#my-profile-page .profile-section-heading:first-child {
    margin-top: 0;
}

#my-profile-page .profile-list-card-muted {
    opacity: 0.6;
    box-shadow: none;
    border: 1px dashed #ccc;
}

#my-profile-page .profile-badge {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

#my-profile-page .profile-badge-paid {
    background: #d4edda;
    color: #1e7e34;
}

#my-profile-page .profile-badge-partial {
    background: #fff3cd;
    color: #856404;
}

#my-profile-page .profile-badge-unpaid {
    background: #f8d7da;
    color: #a71d2a;
}

#my-profile-page .profile-empty {
    text-align: center;
    padding: 2rem;
    color: #777;
}

#my-profile-page .fee-payments-toggle {
    background: none;
    border: none;
    color: #667eea;
    font-size: 0.85rem;
    cursor: pointer;
    padding: 0;
    margin-top: 0.5rem;
}

#my-profile-page .fee-payments-list {
    margin-top: 0.5rem;
    padding-left: 1rem;
    border-left: 3px solid #e0e0e0;
    display: none;
}

#my-profile-page .fee-payments-list.open {
    display: block;
}

/* ------------------------------------------------------------------
   Attendance tab — streaks, 12-month activity heatmap, all-time summary
   (2026-09-09, parity with the admin portal's UserProfile.tsx Attendance
   tab). Scoped under #my-profile-page like everything else on this page.
   ------------------------------------------------------------------ */

#my-profile-page .attendance-section-title {
    font-size: 0.8rem;
    font-weight: 700;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 1.5rem 0 0.75rem;
}

#my-profile-page .attendance-section-title:first-child {
    margin-top: 0;
}

/* Stacked one-per-line (2026-09-10, per Balaji, after removing the
   Activity heatmap section) — was a multi-column auto-fit grid. */
#my-profile-page .attendance-streak-grid {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

#my-profile-page .attendance-streak-card {
    border-radius: 10px;
    border: 1px solid #e6e6e6;
    padding: 0.9rem 1rem;
    background: #fafafa;
}

#my-profile-page .attendance-streak-card.accent-amber { background: #fff8ec; border-color: #f5deb3; }
#my-profile-page .attendance-streak-card.accent-blue { background: #eef4ff; border-color: #c9dcff; }
#my-profile-page .attendance-streak-card.accent-violet { background: #f5eeff; border-color: #ddc9ff; }
#my-profile-page .attendance-streak-card.accent-green { background: #eefaf0; border-color: #c6ebcd; }

#my-profile-page .attendance-streak-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: #555;
    margin-bottom: 0.4rem;
}

#my-profile-page .attendance-streak-current {
    font-size: 1.4rem;
    font-weight: 700;
    color: #333;
}

#my-profile-page .attendance-streak-sub {
    font-size: 0.78rem;
    color: #888;
    margin-top: 0.25rem;
}

#my-profile-page .attendance-heatmap-card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 1.25rem;
    margin-bottom: 1.5rem;
    overflow-x: auto;
}

#my-profile-page .attendance-heatmap-inner {
    display: inline-block;
    min-width: 100%;
}

#my-profile-page .attendance-heatmap-months {
    display: flex;
    margin-bottom: 0.2rem;
    padding-left: 22px;
}

#my-profile-page .attendance-heatmap-month-label {
    font-size: 0.68rem;
    color: #999;
    width: 13px;
    flex: 0 0 auto;
    position: relative;
}

#my-profile-page .attendance-heatmap-month-label span {
    position: absolute;
    left: 0;
    white-space: nowrap;
}

#my-profile-page .attendance-heatmap-grid {
    display: flex;
    gap: 3px;
}

#my-profile-page .attendance-heatmap-daylabels {
    display: flex;
    flex-direction: column;
    gap: 3px;
    width: 18px;
    flex: 0 0 auto;
    margin-right: 4px;
}

#my-profile-page .attendance-heatmap-daylabel {
    font-size: 0.62rem;
    color: #aaa;
    height: 11px;
    line-height: 11px;
}

#my-profile-page .attendance-heatmap-week {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

#my-profile-page .attendance-heatmap-day {
    width: 11px;
    height: 11px;
    border-radius: 2px;
    background: transparent;
}

#my-profile-page .attendance-heatmap-day.level-pad {
    background: transparent;
}

#my-profile-page .attendance-heatmap-day.level-none {
    background: #ebedf0;
}

#my-profile-page .attendance-heatmap-day.level-missed {
    background: #f5b3ac;
}

#my-profile-page .attendance-heatmap-day.level-partial {
    background: #ffd666;
}

#my-profile-page .attendance-heatmap-day.level-full {
    background: #57ba6b;
}

#my-profile-page .attendance-heatmap-legend {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 0.75rem;
    font-size: 0.72rem;
    color: #888;
}

#my-profile-page .attendance-heatmap-legend .attendance-heatmap-day {
    width: 10px;
    height: 10px;
}

#my-profile-page .attendance-summary-card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 1.25rem;
}

#my-profile-page .attendance-summary-row {
    margin-bottom: 0.9rem;
}

#my-profile-page .attendance-summary-row:last-child {
    margin-bottom: 0;
}

#my-profile-page .attendance-summary-row-header {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    margin-bottom: 0.3rem;
}

#my-profile-page .attendance-summary-row-header .label {
    color: #555;
    font-weight: 600;
}

#my-profile-page .attendance-summary-row-header .value {
    color: #888;
}

#my-profile-page .attendance-summary-bar-track {
    background: #eee;
    border-radius: 999px;
    height: 8px;
    overflow: hidden;
}

#my-profile-page .attendance-summary-bar-fill {
    height: 100%;
    border-radius: 999px;
}

/* Mobile pass (2026-09-09) — the rest of this page already reflows fine on
   phones via flex-wrap / grid auto-fit with no @media needed anywhere else
   in this file, but the attendance section's heatmap is genuinely wider
   than a phone screen by design (a real 12-month week grid) and its cards
   were sized/spaced for a desktop card width, which read as "desktop view"
   shrunk onto a phone rather than a native mobile layout. Same 768px
   breakpoint the rest of this app already uses (see main.css). */
@media (max-width: 768px) {
    #my-profile-page .attendance-streak-grid {
        gap: 0.5rem;
    }

    #my-profile-page .attendance-streak-card {
        padding: 0.75rem 0.85rem;
    }

    #my-profile-page .attendance-streak-current {
        font-size: 1.2rem;
    }

    #my-profile-page .attendance-heatmap-card,
    #my-profile-page .attendance-summary-card {
        padding: 1rem 0.85rem;
        border-radius: 8px;
    }

    /* Smaller cells + tighter gaps fit more weeks on screen before the
       card's own horizontal scroll kicks in - still scrollable for the
       full 12 months, just denser so a mobile member sees more of their
       recent activity at a glance instead of 2-3 lonely squares. */
    #my-profile-page .attendance-heatmap-day {
        width: 9px;
        height: 9px;
    }

    #my-profile-page .attendance-heatmap-week {
        gap: 2px;
    }

    #my-profile-page .attendance-heatmap-grid {
        gap: 2px;
    }

    #my-profile-page .attendance-heatmap-daylabels {
        gap: 2px;
        width: 14px;
    }

    #my-profile-page .attendance-heatmap-daylabel {
        height: 9px;
        line-height: 9px;
        font-size: 0.58rem;
    }

    #my-profile-page .attendance-heatmap-month-label {
        width: 11px;
    }

    #my-profile-page .attendance-summary-row-header {
        font-size: 0.8rem;
    }
}
