/* /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) {
    .top-row[b-73klgz2rd9] {
        flex-wrap: wrap;
        gap: var(--mc-space-3);
        padding: var(--mc-space-3);
        height: auto;
    }
}

#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/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;
}
