/* _content/TS2026.UI.Blazor/Shared/MainLayout.razor.rz.scp.css */
/* ── Page: sidebar left, main area right ── */
.page[b-ni6lmposqj] {
    display: flex;
    flex-direction: row;
    min-height: 100vh;
}

/* ── Main area: offset by sidebar width ── */
.main-area[b-ni6lmposqj] {
    margin-left: 240px;
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    transition: margin-left 0.2s ease;
}

.main-area-collapsed[b-ni6lmposqj] {
    margin-left: 64px;
}

/* ── Top header bar (white, compact) ── */
.top-header[b-ni6lmposqj] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 3rem;
    padding: 0 0.75rem;
    background: white;
    border-bottom: 1px solid #E5E5E5;
    position: sticky;
    top: 0;
    z-index: 40;
}

.header-left[b-ni6lmposqj] {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.header-right[b-ni6lmposqj] {
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

/* "PROJECT" label */
.header-label[b-ni6lmposqj] {
    font-size: 0.625rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #9B9B9B;
}

/* Project name badge */
.header-project-badge[b-ni6lmposqj] {
    display: inline-block;
    padding: 0.125rem 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: #3B3B3B;
    background: #F9F9F9;
    border: 1px solid #E5E5E5;
    border-radius: 4px;
}

/* Vertical divider */
.header-divider[b-ni6lmposqj] {
    width: 1px;
    height: 1.25rem;
    background: #E5E5E5;
    margin: 0 0.25rem;
}

/* ── Header buttons ── */
.header-btn[b-ni6lmposqj] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    height: 1.75rem;
    padding: 0 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.15s ease;
    white-space: nowrap;
    border: none;
}

.header-btn:disabled[b-ni6lmposqj] {
    opacity: 0.4;
    pointer-events: none;
}

.header-btn .oi[b-ni6lmposqj] {
    font-size: 0.8rem;
}

/* Accent (New Project) — lime green */
.header-btn-accent[b-ni6lmposqj] {
    background: #C5F41D;
    color: #3B3B3B;
    border: 1px solid #C5F41D;
}

.header-btn-accent:hover[b-ni6lmposqj] {
    background: #b0dc0f;
}

/* Outline (Save, Load) — bordered dark */
.header-btn-outline[b-ni6lmposqj] {
    background: white;
    color: #3B3B3B;
    border: 1px solid #3B3B3B;
}

.header-btn-outline:hover[b-ni6lmposqj] {
    background: #3B3B3B;
    color: white;
}

/* ── Restore banner ── */
.restore-banner[b-ni6lmposqj] {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 1.25rem;
    background: #fff3cd;
    border-bottom: 1px solid #ffc107;
    color: #856404;
    font-size: 0.875rem;
}

.restore-banner-text[b-ni6lmposqj] {
    flex: 1;
}

/* ── Main content ── */
main[b-ni6lmposqj] {
    flex: 1;
    background: #f4f4f5;
}

article[b-ni6lmposqj] {
    padding: 0;
}
/* _content/TS2026.UI.Blazor/Shared/NavMenu.razor.rz.scp.css */
/* ── Sidebar shell ── */
.sidebar[b-h6pl51imfr] {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 240px;
    background: #3B3B3B;
    z-index: 50;
    transition: width 0.2s ease;
}

.sidebar-collapsed[b-h6pl51imfr] {
    width: 64px;
}

.sidebar-inner[b-h6pl51imfr] {
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* ── Header (logo + toggle) ── */
.sidebar-header[b-h6pl51imfr] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 3.5rem;
    padding: 0 0.75rem;
    border-bottom: 1px solid #4A4A4A;
}

.sidebar-collapsed .sidebar-header[b-h6pl51imfr] {
    justify-content: center;
}

.sidebar-logo[b-h6pl51imfr] {
    display: flex;
    align-items: center;
    text-decoration: none;
    overflow: hidden;
}

.logo-img[b-h6pl51imfr] {
    height: 2rem;
    width: auto;
}

.logo-icon[b-h6pl51imfr] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    min-width: 2rem;
    background: #C5F41D;
    color: #3B3B3B;
    font-weight: 800;
    font-size: 0.85rem;
    border-radius: 6px;
}

/* Toggle button */
.toggle-btn[b-h6pl51imfr] {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    background: transparent;
    border: none;
    color: white;
    cursor: pointer;
    border-radius: 6px;
    transition: background-color 0.15s ease;
    flex-shrink: 0;
}

.toggle-btn:hover[b-h6pl51imfr] {
    background: #4A4A4A;
}

.toggle-btn .e-icons[b-h6pl51imfr] {
    color: #fff;
    font-size: 18px;
}

/* Collapsed logo (centered below header) */
.collapsed-logo[b-h6pl51imfr] {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 3rem;
}

.collapsed-logo a[b-h6pl51imfr] {
    text-decoration: none;
}

/* ── Nav links ── */
.sidebar-nav[b-h6pl51imfr] {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 1rem 0.5rem;
}

/* ::deep needed — NavLink is a child component, scoped attribute doesn't reach its <a> */
[b-h6pl51imfr] .nav-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.625rem 0.75rem;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    color: white;
    text-decoration: none;
    transition: background-color 0.15s ease;
    cursor: pointer;
    white-space: nowrap;
    overflow: hidden;
}

[b-h6pl51imfr] .nav-link:hover {
    background: #4A4A4A;
    color: white;
    text-decoration: none;
}

/* Active — lime green */
[b-h6pl51imfr] .nav-link.active {
    background: #C5F41D;
    color: #3B3B3B;
}

[b-h6pl51imfr] .nav-link.active .nav-icon {
    color: #3B3B3B;
}

[b-h6pl51imfr] .nav-link.active:hover {
    background: #C5F41D;
    color: #3B3B3B;
}

/* Collapsed: center icons */
.sidebar-collapsed[b-h6pl51imfr]  .nav-link {
    justify-content: center;
    padding: 0.625rem 0.5rem;
    gap: 0;
}

/* Disabled (Sag & Tension locked) */
[b-h6pl51imfr] .nav-link-disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

[b-h6pl51imfr] .nav-link-disabled:hover {
    background: transparent;
}

/* Clickable (Home with unsaved guard) */
[b-h6pl51imfr] .nav-link-clickable {
    cursor: pointer;
}

/* Icons */
.nav-icon[b-h6pl51imfr] {
    font-size: 1.1rem;
    width: 1.25rem;
    text-align: center;
    flex-shrink: 0;
}

.lock-icon[b-h6pl51imfr] {
    margin-left: auto;
    font-size: 0.7rem;
    opacity: 0.6;
}

/* ── Footer ── */
.sidebar-footer[b-h6pl51imfr] {
    padding: 1rem;
    border-top: 1px solid #4A4A4A;
}

.footer-line[b-h6pl51imfr] {
    margin: 0;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
}

.footer-sub[b-h6pl51imfr] {
    margin: 0;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.4);
}
