/* _content/TenderAI.Web/Components/Layout/MainLayout.razor.rz.scp.css */
.page[b-t9dx0zmo6l] {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow: hidden;
}

main[b-t9dx0zmo6l] {
    flex: 1;
    overflow-y: auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

    main > article[b-t9dx0zmo6l] {
        flex: 0 0 auto;
    }

.sidebar[b-t9dx0zmo6l] {
    background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
    transition: width 0.25s ease, margin-left 0.25s ease;
    overflow: hidden;
}

/* Hamburger button in top-row */
.sidebar-toggle-btn[b-t9dx0zmo6l] {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
}

.top-row[b-t9dx0zmo6l] {
    background-color: white;
    border-bottom: 1px solid #e5e7eb;
    justify-content: flex-end;
    height: 3.5rem;
    display: flex;
    align-items: center;
    gap: .75rem;
}

    .top-row[b-t9dx0zmo6l]  a, .top-row[b-t9dx0zmo6l]  .btn-link {
        white-space: nowrap;
        text-decoration: none;
    }

    .top-row[b-t9dx0zmo6l]  a:hover, .top-row[b-t9dx0zmo6l]  .btn-link:hover {
        text-decoration: none;
    }

/* ─── Sidebar backdrop (mobile only) ─── */
.sidebar-backdrop[b-t9dx0zmo6l] {
    display: none;
}

/* ─── Mobile & Tablet (<1025px): sidebar is an overlay ─── */
@media (max-width: 1024.98px) {
    .top-row[b-t9dx0zmo6l] {
        justify-content: space-between;
    }

    .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: 0;
        left: 0;
        width: 240px;
        height: 100vh;
        z-index: 1050;
        transform: translateX(-100%);
        transition: transform 0.25s ease;
    }

    .sidebar.open[b-t9dx0zmo6l] {
        transform: translateX(0);
    }
}

/* ─── Desktop (>=1025px): sidebar pushes content ─── */
@media (min-width: 1025px) {
    .page[b-t9dx0zmo6l] {
        flex-direction: row;
    }

    .sidebar[b-t9dx0zmo6l] {
        width: 240px;
        min-width: 240px;
        height: 100%;
        overflow: hidden;
    }

    .sidebar.collapsed[b-t9dx0zmo6l] {
        width: 0;
        min-width: 0;
    }

    .top-row[b-t9dx0zmo6l] {
        position: sticky;
        top: 0;
        z-index: 1;
    }

    .top-row[b-t9dx0zmo6l], article[b-t9dx0zmo6l] {
        padding-left: 2rem !important;
        padding-right: 2rem !important;
    }
}

#blazor-error-ui[b-t9dx0zmo6l] {
    color-scheme: light only;
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss[b-t9dx0zmo6l] {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.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;
}
