/* _content/TenderAI.Web/Components/Layout/MainLayout.razor.rz.scp.css */
/* ─────────────────────────────────────────────────────────────────
   Layout structure:
   ┌─────────────────────────────────────────────────────────────┐
   │  .app-topbar   (full-width blue header, 56px)               │
   ├─────────────────┬───────────────────────────────────────────┤
   │  .sidebar       │  main                                     │
   │  (dark, 240px)  │   article (scrollable content)            │
   │                 │   footer                                  │
   └─────────────────┴───────────────────────────────────────────┘
   ───────────────────────────────────────────────────────────── */

.page[b-t9dx0zmo6l] {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow: hidden;
}

/* ─── Top header bar (full width) ───────────────────────────── */
.app-topbar[b-t9dx0zmo6l] {
    flex: 0 0 56px;
    height: 56px;
    background: linear-gradient(135deg, #1e3a5f 0%, #2563eb 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1rem;
    z-index: 1030;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.app-topbar-left[b-t9dx0zmo6l] {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.app-topbar-right[b-t9dx0zmo6l] {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.app-topbar-toggle[b-t9dx0zmo6l] {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    color: white;
}

.app-topbar-toggle:hover[b-t9dx0zmo6l] {
    background: rgba(255,255,255,0.12);
    color: white;
}

.app-topbar-brand[b-t9dx0zmo6l] {
    font-size: 1rem;
}

.app-topbar-brand:hover[b-t9dx0zmo6l] {
    color: white;
}

/* ─── Below header: sidebar + main ──────────────────────────── */
.app-body[b-t9dx0zmo6l] {
    flex: 1;
    display: flex;
    min-height: 0;
    overflow: hidden;
}

/* ─── Sidebar (dark vertical nav) ───────────────────────────── */
.sidebar[b-t9dx0zmo6l] {
    background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
    transition: width 0.25s ease, transform 0.25s ease;
    overflow: hidden;
}

/* ─── Main content area ─────────────────────────────────────── */
main[b-t9dx0zmo6l] {
    flex: 1;
    overflow-y: auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

main > article[b-t9dx0zmo6l] {
    flex: 1 0 auto;
    padding-top: 1rem;
}

/* ─── Backdrop (mobile only) ────────────────────────────────── */
.sidebar-backdrop[b-t9dx0zmo6l] {
    display: none;
}

/* ─── Mobile & Tablet (<1025px): sidebar overlays ───────────── */
@media (max-width: 1024.98px) {
    .sidebar-backdrop.show[b-t9dx0zmo6l] {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 1040;
    }

    .sidebar[b-t9dx0zmo6l] {
        position: fixed;
        top: 56px;
        left: 0;
        width: 240px;
        height: calc(100vh - 56px);
        z-index: 1050;
        transform: translateX(-100%);
    }

    .sidebar.open[b-t9dx0zmo6l] {
        transform: translateX(0);
    }
}

/* ─── Desktop (>=1025px): sidebar in flow ───────────────────── */
@media (min-width: 1025px) {
    .sidebar[b-t9dx0zmo6l] {
        width: 240px;
        min-width: 240px;
        height: 100%;
    }

    /* Collapsed — thin icon-only rail (Vidyalaya-style) */
    .sidebar.collapsed[b-t9dx0zmo6l] {
        width: 56px;
        min-width: 56px;
    }

    /* Hide section labels + dividers */
    .sidebar.collapsed[b-t9dx0zmo6l]  .nav-section-label,
    .sidebar.collapsed[b-t9dx0zmo6l]  hr {
        display: none !important;
    }

    /* Center icons + collapse the text labels next to them.
       SVG icons keep their own width/height so they stay visible. */
    .sidebar.collapsed[b-t9dx0zmo6l]  .nav-item {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    .sidebar.collapsed[b-t9dx0zmo6l]  .nav-link {
        justify-content: center !important;
        padding: 0.6rem 0 !important;
        font-size: 0 !important;
        white-space: nowrap;
        overflow: hidden;
    }
    .sidebar.collapsed[b-t9dx0zmo6l]  .nav-icon {
        margin: 0 !important;
        flex-shrink: 0;
    }
    /* Hide badges or any extra inline children */
    .sidebar.collapsed[b-t9dx0zmo6l]  .nav-link .badge {
        display: none !important;
    }

    main > article[b-t9dx0zmo6l] {
        padding-left: 2rem !important;
        padding-right: 2rem !important;
        padding-top: 1.5rem;
    }
}
/* _content/TenderAI.Web/Components/Layout/NavMenu.razor.rz.scp.css */
.top-row[b-izajm2coyf] {
    min-height: 3rem;
    background-color: rgba(0,0,0,0.4);
}

.navbar-brand[b-izajm2coyf] {
    font-size: .9rem;
}

.sidebar-close-btn[b-izajm2coyf] {
    opacity: .7;
    transition: opacity .15s;
}

.sidebar-close-btn:hover[b-izajm2coyf] {
    opacity: 1;
}

@media (min-width: 1025px) {
    .sidebar-close-btn[b-izajm2coyf] {
        display: none;
    }
}

.nav-scrollable[b-izajm2coyf] {
    height: calc(100vh - 3rem);
    overflow-y: auto;
    padding-bottom: .5rem;
}

/* ─── Nav items ─── */
.nav-item[b-izajm2coyf] {
    font-size: .78rem;
    padding-bottom: 1px;
}

    .nav-item:first-of-type[b-izajm2coyf] {
        padding-top: .25rem;
    }

    .nav-item:last-of-type[b-izajm2coyf] {
        padding-bottom: .5rem;
    }

    .nav-item[b-izajm2coyf]  .nav-link {
        color: rgba(255,255,255,.65);
        background: none;
        border: none;
        border-radius: 6px;
        height: 2.15rem;
        display: flex;
        align-items: center;
        gap: .55rem;
        line-height: 1;
        width: 100%;
        white-space: nowrap;
        padding: 0 .6rem;
        transition: all .15s ease;
    }

.nav-item[b-izajm2coyf]  a.active {
    background-color: rgba(255,255,255,.12);
    color: #fff;
}

.nav-item[b-izajm2coyf]  .nav-link:hover {
    background-color: rgba(255,255,255,.08);
    color: rgba(255,255,255,.9);
}

/* ─── Icons inside nav links ─── */
.nav-item[b-izajm2coyf]  .nav-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    opacity: .7;
}

.nav-item[b-izajm2coyf]  a.active .nav-icon {
    opacity: 1;
}

/* ─── Section labels ─── */
.nav-section-label[b-izajm2coyf] {
    font-size: .6rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    font-weight: 600;
    color: rgba(255, 255, 255, .35);
    white-space: nowrap;
}
