/* /Components/Layout/MainLayout.razor.rz.scp.css */
.page[b-73klgz2rd9] {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--mc-bg);
}

.sidebar[b-73klgz2rd9] {
    width: 100%;
    background: var(--mc-nav-bg);
    border-bottom: 1px solid var(--mc-border);
    transition: width 0.3s ease;
}

main[b-73klgz2rd9] {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background: var(--mc-bg);
}

.top-row[b-73klgz2rd9] {
    position: sticky;
    top: 0;
    z-index: 50;
    height: 3.5rem;
    padding: 0 var(--mc-space-4);
    display: flex;
    align-items: center;
    background: var(--mc-topbar-bg);
    border-bottom: 1px solid var(--mc-border);
    box-shadow: var(--mc-shadow-sm);
}

.top-row[b-73klgz2rd9]  label {
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.7rem;
    font-family: var(--mc-font-heading);
    font-weight: 600;
    color: var(--mc-text-muted);
}

.content[b-73klgz2rd9] {
    flex: 1;
}

@media (min-width: 960px) {
    .page[b-73klgz2rd9] {
        flex-direction: row;
    }

    .sidebar[b-73klgz2rd9] {
        width: 210px;
        height: 100vh;
        border-right: 1px solid var(--mc-border);
        border-bottom: none;
        position: sticky;
        top: 0;
    }

    .sidebar.collapsed[b-73klgz2rd9] {
        width: 80px;
    }

    main[b-73klgz2rd9] {
        flex: 1;
        width: 0;
    }
}

@media (max-width: 959.98px) {
    .sidebar[b-73klgz2rd9] {
        display: none !important;
    }

    .top-row[b-73klgz2rd9] {
        display: none !important;
    }

    .content[b-73klgz2rd9] {
        padding-bottom: 72px;
    }
}

/* Mobile elements are hidden on desktop and shown on mobile via mobile.css
   (global rules, not scoped, to avoid specificity conflicts with the [b-xxx] attribute). */

#blazor-error-ui[b-73klgz2rd9] {
    background: rgba(237, 57, 21, 0.12);
    border: 1px solid rgba(237, 57, 21, 0.25);
    color: var(--mc-text-heading);
    bottom: var(--mc-space-3);
    left: var(--mc-space-3);
    right: var(--mc-space-3);
    padding: var(--mc-space-3);
    position: fixed;
    border-radius: var(--mc-radius-md);
    display: none;
    z-index: 1000;
}

#blazor-error-ui .dismiss[b-73klgz2rd9] {
    cursor: pointer;
    position: absolute;
    right: var(--mc-space-3);
    top: var(--mc-space-2);
}
/* /Components/Layout/NavMenu.razor.rz.scp.css */
.nav-shell[b-7ccruoaovl] {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: var(--mc-space-2);
    background: var(--mc-nav-bg);
    color: var(--mc-text-body);
    transition: width 0.3s ease;
    overflow: hidden;
}

/* Header & Brand */
.nav-header[b-7ccruoaovl] {
    display: flex;
    align-items: center;
    gap: var(--mc-space-3);
    height: 3rem;
    margin-bottom: var(--mc-space-4);
    padding-left: var(--mc-space-2);
}

.hamburger-btn[b-7ccruoaovl] {
    background: none;
    border: none;
    padding: var(--mc-space-1);
    cursor: pointer;
    color: var(--mc-text-body);
    border-radius: var(--mc-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s;
}

.hamburger-btn:hover[b-7ccruoaovl] {
    background: rgba(255, 255, 255, 0.06);
}

.nav-brand-block[b-7ccruoaovl] {
    white-space: nowrap;
}

.brand-title[b-7ccruoaovl] {
    font-family: var(--mc-font-heading);
    font-size: 1rem;
    font-weight: 700;
    color: var(--mc-text-heading);
    letter-spacing: 0.05em;
}

.brand-subtitle[b-7ccruoaovl] {
    font-family: var(--mc-font-heading);
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--mc-text-muted);
}

.nav-scrollable[b-7ccruoaovl] {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
}

.nav-divider[b-7ccruoaovl] {
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* Navigation Items */
.primary-nav .nav-item[b-7ccruoaovl] {
    margin-bottom: var(--mc-space-1);
}

.primary-nav[b-7ccruoaovl]  .nav-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--mc-text-body);
    font-family: var(--mc-font-body);
    font-size: 0.9rem;
    font-weight: 500;
    padding: var(--mc-space-2) var(--mc-space-2);
    border-radius: var(--mc-radius-sm);
    border-left: 3px solid transparent;
    white-space: nowrap;
    transition: background 0.15s ease, border-color 0.15s ease;
    height: 40px;
}

.primary-nav[b-7ccruoaovl]  .nav-link:hover {
    background: rgba(255, 255, 255, 0.04);
    color: var(--mc-text-heading);
}

.primary-nav[b-7ccruoaovl]  a.active {
    background: rgba(52, 200, 252, 0.08);
    color: var(--mc-primary);
    border-left-color: var(--mc-primary);
    font-weight: 600;
}

/* Footer */
.footer-card[b-7ccruoaovl] {
    display: flex;
    align-items: center;
    gap: var(--mc-space-2);
    padding: var(--mc-space-2);
}

.user-meta[b-7ccruoaovl] {
    flex: 1;
    min-width: 0;
}

.user-name[b-7ccruoaovl] {
    font-family: var(--mc-font-body);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--mc-text-heading);
}

.user-role[b-7ccruoaovl] {
    font-family: var(--mc-font-heading);
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--mc-text-muted);
}

.logout-btn[b-7ccruoaovl] {
    background: none;
    border: 1px solid var(--mc-border);
    border-radius: var(--mc-radius-sm);
    padding: var(--mc-space-1);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s;
}

.logout-btn:hover[b-7ccruoaovl] {
    background: rgba(237, 57, 21, 0.08);
}

/* Collapsed State Overrides */
.nav-shell.collapsed[b-7ccruoaovl] {
    padding: var(--mc-space-3) var(--mc-space-2);
}

.nav-shell.collapsed .nav-header[b-7ccruoaovl] {
    justify-content: center;
    padding-left: 0;
}

.nav-shell.collapsed .primary-nav[b-7ccruoaovl]  .nav-link {
    justify-content: center;
    padding: var(--mc-space-2);
    border-left: none;
}

.nav-shell.collapsed .nav-footer[b-7ccruoaovl] {
    display: flex;
    justify-content: center;
}

.nav-shell.collapsed .footer-card[b-7ccruoaovl] {
    padding: 0;
    background: none;
    border: none;
    display: flex;
    justify-content: center;
}

.nav-shell.collapsed .logout-btn[b-7ccruoaovl] {
    margin: 0;
}

/* Animations */
.fade-in[b-7ccruoaovl] {
    animation: fadeIn-b-7ccruoaovl 0.2s forwards;
}

@keyframes fadeIn-b-7ccruoaovl {
    from { opacity: 0; }
    to { opacity: 1; }
}
/* /Components/Pages/Bmi.razor.rz.scp.css */
/* =============================================================================
   BMI page — hero layout
   ============================================================================= */

.bmi-hero[b-r11mao12c7] {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

/* =============================================================================
   Vertical BMI gauge
   ============================================================================= */

.bmi-vgauge[b-r11mao12c7] {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    height: 280px;
    flex-shrink: 0;
}

/* The coloured bar. Segments are stacked vertically inside a flex column. */
.bmi-vgauge-bar[b-r11mao12c7] {
    position: relative;
    width: 40px;
    height: 100%;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
}

.bmi-vgauge-seg[b-r11mao12c7] {
    width: 100%;
    flex-shrink: 0;
}

/* Ticks are absolutely positioned within the bar. */
.bmi-vgauge-tick[b-r11mao12c7] {
    position: absolute;
    left: 0;
    right: 0;
    height: 4px;
    transform: translateY(-50%);
    z-index: 2;
    border-radius: 2px;
}

/* Current BMI — solid bright white */
.bmi-tick-current[b-r11mao12c7] {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.6);
}

/* Phase-start BMI — dashed cyan */
.bmi-tick-phase[b-r11mao12c7] {
    background: transparent;
    height: 0;
    border-top: 2.5px dashed #34c8fc;
}

/* All-time peak BMI — dashed orange */
.bmi-tick-peak[b-r11mao12c7] {
    background: transparent;
    height: 0;
    border-top: 2px dashed #e8873d;
}

/* Boundary value labels to the right of the bar */
.bmi-vgauge-bdry-col[b-r11mao12c7] {
    position: relative;
    width: 30px;
    height: 100%;
    flex-shrink: 0;
}

.bmi-vgauge-bdry[b-r11mao12c7] {
    position: absolute;
    left: 0;
    transform: translateY(-50%);
    font-family: var(--mc-font-mono);
    font-size: 0.6rem;
    color: var(--mc-text-muted);
    white-space: nowrap;
    line-height: 1;
}

/* =============================================================================
   Info panel (right side of hero)
   ============================================================================= */

.bmi-info[b-r11mao12c7] {
    flex: 1;
    min-width: 0;
    padding-top: 2px;
}

.bmi-info-eyebrow[b-r11mao12c7] {
    font-family: var(--mc-font-heading);
    font-size: 0.62rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    color: var(--mc-text-muted);
    margin-bottom: 4px;
}

.bmi-big-number[b-r11mao12c7] {
    font-family: var(--mc-font-heading);
    font-size: 3.6rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.03em;
    margin-bottom: 8px;
}

.bmi-category-pill[b-r11mao12c7] {
    display: inline-block;
    font-family: var(--mc-font-heading);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 3px 10px;
    border-radius: 20px;
    margin-bottom: 6px;
}

.bmi-category-message[b-r11mao12c7] {
    font-size: 0.76rem;
    color: var(--mc-text-muted);
    margin-bottom: 2px;
}

.bmi-target-note[b-r11mao12c7] {
    font-size: 0.76rem;
    color: var(--mc-text-muted);
    margin-top: 4px;
}

.bmi-target-note strong[b-r11mao12c7] {
    color: var(--mc-text-body);
    font-weight: 700;
}

.bmi-target-note-good[b-r11mao12c7] {
    color: #6abf69;
}

/* Marker legend */
.bmi-legend[b-r11mao12c7] {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.bmi-legend-row[b-r11mao12c7] {
    display: flex;
    align-items: center;
    gap: 8px;
}

.bmi-legend-swatch[b-r11mao12c7] {
    display: inline-block;
    width: 22px;
    flex-shrink: 0;
}

.bmi-swatch-solid[b-r11mao12c7] {
    height: 3px;
    border-radius: 2px;
}

.bmi-swatch-dashed[b-r11mao12c7] {
    height: 0;
    background: transparent !important;
    border-top: 2.5px dashed;
}

.bmi-legend-text[b-r11mao12c7] {
    font-size: 0.74rem;
    color: var(--mc-text-muted);
    line-height: 1.3;
}

.bmi-legend-text strong[b-r11mao12c7] {
    color: var(--mc-text-body);
    font-weight: 600;
}

/* =============================================================================
   Journey cards — phase & all-time
   ============================================================================= */

.bmi-journey-grid[b-r11mao12c7] {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.bmi-journey-card[b-r11mao12c7] {
    /* margin-bottom override — grid gap handles spacing */
    margin-bottom: 0 !important;
}

.bmi-journey-header[b-r11mao12c7] {
    font-family: var(--mc-font-heading);
    font-size: 0.62rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    color: var(--mc-text-muted);
    margin-bottom: 2px;
}

.bmi-journey-subtitle[b-r11mao12c7] {
    font-size: 0.72rem;
    color: var(--mc-text-muted);
    margin-bottom: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.bmi-journey-flow[b-r11mao12c7] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4px;
}

.bmi-journey-endpoint[b-r11mao12c7] {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    flex: 1;
}

.bmi-journey-val[b-r11mao12c7] {
    font-family: var(--mc-font-heading);
    font-size: 1.55rem;
    font-weight: 800;
    line-height: 1;
}

.bmi-journey-cat[b-r11mao12c7] {
    font-size: 0.62rem;
    color: var(--mc-text-muted);
    text-align: center;
    line-height: 1.2;
}

.bmi-journey-lbl[b-r11mao12c7] {
    font-family: var(--mc-font-heading);
    font-size: 0.58rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--mc-text-muted);
    margin-top: 2px;
}

.bmi-journey-delta[b-r11mao12c7] {
    font-family: var(--mc-font-heading);
    font-size: 1rem;
    font-weight: 800;
    text-align: center;
    flex-shrink: 0;
    padding: 0 4px;
    white-space: nowrap;
}

/* On very narrow screens, stack journey cards */
@media (max-width: 400px) {
    .bmi-journey-grid[b-r11mao12c7] {
        grid-template-columns: 1fr;
    }
}
/* /Components/Pages/CorrelationGraph.razor.rz.scp.css */
.correlation-chart-wrapper[b-2copdzsucd] {
    width: 100%;
    height: 600px;
}

.correlation-chart-canvas[b-2copdzsucd] {
    width: 100%;
    height: 100%;
    padding: var(--mc-space-3);
    background: var(--mc-surface);
    border: 1px solid var(--mc-border-light);
    border-radius: var(--mc-radius-md);
}
/* /Components/Pages/DeficitGraph.razor.rz.scp.css */
.deficit-chart-wrapper[b-ffwou163ae] {
    width: 100%;
}

.deficit-chart-canvas[b-ffwou163ae] {
    position: relative;
    width: 100%;
    aspect-ratio: 2 / 1;
    overflow: hidden;
}
/* /Components/Pages/MetabolismGraph.razor.rz.scp.css */
.metabolism-chart-wrapper[b-o7g2xmsz52] {
    width: 100%;
}

.metabolism-chart-canvas[b-o7g2xmsz52] {
    position: relative;
    width: 100%;
    aspect-ratio: 2 / 1;
}
/* /Components/Pages/WeeklySummary.razor.rz.scp.css */
/* All styles consolidated into wwwroot/app.css design system */
/* /Components/Pages/WeightGraph.razor.rz.scp.css */
.weight-chart-wrapper[b-p9dttz44x7] {
    width: 100%;
}

/* Aspect ratio is locked at 2:1 so the plot mirrors the shared reference image.
   No border/background — the parent mc-card provides the frame. */
.weight-chart-canvas[b-p9dttz44x7] {
    position: relative;
    width: 100%;
    aspect-ratio: 2 / 1;
}

.weight-chart-canvas > div[b-p9dttz44x7] {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

/* ApexCharts recalculates dimensions automatically when the parent size changes. */
.weight-chart-wrapper .apexcharts-canvas[b-p9dttz44x7] {
    width: 100% !important;
    height: 100% !important;
}

/* Velocity chart sits directly below the weight chart.
   Same 2:1 aspect ratio ensures identical visual width. */
.velocity-chart-wrapper[b-p9dttz44x7] {
    width: 100%;
}

.velocity-chart-canvas[b-p9dttz44x7] {
    position: relative;
    width: 100%;
    aspect-ratio: 2 / 1;
}

.velocity-chart-canvas > div[b-p9dttz44x7] {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.velocity-chart-wrapper .apexcharts-canvas[b-p9dttz44x7] {
    width: 100% !important;
    height: 100% !important;
}
/* /Components/Pages/WeightGraphNT.razor.rz.scp.css */
.weight-chart-wrapper[b-wlihcx2pis] {
    width: 100%;
}

.weight-chart-canvas[b-wlihcx2pis] {
    position: relative;
    width: 100%;
    aspect-ratio: 2 / 1;
    overflow: hidden;
}
