/* /Layout/MainLayout.razor.rz.scp.css */
.page[b-53ce1nxpta] {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow: hidden;
    width: 100vw;
}

main[b-53ce1nxpta] {
    flex: 1;
    position: relative;
    z-index: 1;
    background-color: white;
    width: 100%;
    height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
}

article[b-53ce1nxpta] {
    width: 100%;
    flex: 1;
    overflow-y: auto;
    padding: 0 !important;
    margin: 0 !important;
}

article .container-fluid[b-53ce1nxpta] {
    width: 100%;
    padding: 0 !important;
    margin: 0 !important;
}

.sidebar[b-53ce1nxpta] {
    background-image: linear-gradient(180deg, rgb(5, 39, 103) 0%, #3a0647 70%);
    transition: transform 0.3s ease-in-out;
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 1000;
    width: 250px;
}

.sidebar.collapsed[b-53ce1nxpta] {
    transform: translateX(-100%);
}

.sidebar.expanded[b-53ce1nxpta] {
    transform: translateX(0);
}

.sidebar-backdrop[b-53ce1nxpta] {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
    animation: fadeIn-b-53ce1nxpta 0.3s ease-in-out;
}

@keyframes fadeIn-b-53ce1nxpta {
    from { opacity: 0; }
    to { opacity: 1; }
}

.navbar-toggler[b-53ce1nxpta] {
    background-color: transparent;
    border: 1px solid rgba(0,0,0,0.1);
    padding: 0.5rem;
    margin-right: 1rem;
    width: 42px;
    height: 42px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.navbar-toggler:hover[b-53ce1nxpta] {
    background-color: rgba(0,0,0,0.05);
}

.navbar-toggler-icon[b-53ce1nxpta] {
    display: inline-block;
    width: 1.5em;
    height: 1.5em;
    vertical-align: middle;
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba(0,0,0,0.5)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 8h24M4 16h24M4 24h24'/%3E%3C/svg%3E");
    background-size: 100% 100%;
}

.top-row[b-53ce1nxpta] {
    background-color: #f7f7f7;
    border-bottom: 1px solid #d6d5d5;
    justify-content: flex-end;
    display: flex;
    align-items: center;
    padding: 0.5rem 1rem;
    flex-shrink: 0;
}

    .top-row[b-53ce1nxpta]  a, .top-row[b-53ce1nxpta]  .btn-link {
        white-space: nowrap;
        margin-left: 1.5rem;
        text-decoration: none;
    }

        .top-row[b-53ce1nxpta]  a:hover, .top-row[b-53ce1nxpta]  .btn-link:hover {
            text-decoration: underline;
        }

        .top-row[b-53ce1nxpta]  a:first-child {
            overflow: hidden;
            text-overflow: ellipsis;
        }

@media (max-width: 640.98px) {
    .page[b-53ce1nxpta] {
        flex-direction: column;
    }

    .sidebar[b-53ce1nxpta] {
        width: 80%;
        max-width: 300px;
    }

    .navbar-toggler[b-53ce1nxpta] {
        display: flex;
        align-items: center;
        justify-content: center;
        margin-right: 1rem;
    }

    .navbar-toggler-icon[b-53ce1nxpta] {
        display: inline-block;
        width: 1.5em;
        height: 1.5em;
        background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba(0,0,0,0.5)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 8h24M4 16h24M4 24h24'/%3E%3C/svg%3E");
        background-size: 100% 100%;
    }

    .top-row[b-53ce1nxpta] {
        justify-content: space-between;
        position: sticky;
        top: 0;
        z-index: 999;
        background-color: white;
    }

    .top-row[b-53ce1nxpta]  a, .top-row[b-53ce1nxpta]  .btn-link {
        margin-left: 0;
    }

    .content[b-53ce1nxpta] {
        width: 100%;
        height: 100%;
        display: flex;
        flex-direction: column;
        padding: 0;
        margin: 0;
    }

    /* Mobile backdrop is handled by the conditional rendering in the Razor file */

    main[b-53ce1nxpta] {
        margin-left: 0 !important;
        transition: margin-left 0.3s ease-in-out;
    }
}

@media (min-width: 641px) {
    .page[b-53ce1nxpta] {
        flex-direction: row;
    }

    .sidebar[b-53ce1nxpta] {
        position: fixed;
        width: 250px;
        height: 100vh;
    }

    main[b-53ce1nxpta] {
        width: calc(100% - 0px);
        margin-left: 0;
    }

    .navbar-toggler[b-53ce1nxpta] {
        display: flex;
        align-items: center;
        justify-content: center;
        margin-right: auto; /* This will push other items to the right */
    }

    .top-row[b-53ce1nxpta] {
        position: sticky;
        top: 0;
        z-index: 1;
        display: flex;
        align-items: center;
    }

    .top-row.auth[b-53ce1nxpta]  a:first-child {
        flex: 1;
        text-align: right;
        width: 0;
    }

    .top-row[b-53ce1nxpta], article[b-53ce1nxpta] {
        padding-left: 2rem !important;
        padding-right: 1.5rem !important;
    }

    /* Hide backdrop on desktop */
    .sidebar-backdrop[b-53ce1nxpta] {
        display: none !important;
    }
}
/* /Layout/NavMenu.razor.rz.scp.css */
/* ── Topbar inside sidebar ─────────────────────────────────────────────────── */
.navbar-toggler[b-os95guojx2] {
    background-color: rgba(255, 255, 255, 0.1);
}

.top-row[b-os95guojx2] {
    height: 3.5rem;
    background-color: rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.navbar-brand[b-os95guojx2] {
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

/* ── Menu icons (Bootstrap Icons font) ─────────────────────────────────────── */
.menu-icon[b-os95guojx2] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.4rem;
    margin-right: 0.55rem;
    font-size: 0.95rem;
    flex-shrink: 0;
    opacity: 0.9;
}

/* ── Pure-CSS chevrons — no font dependency ─────────────────────────────────── */
.chevron[b-os95guojx2] {
    display: inline-block;
    width: 0.4rem;
    height: 0.4rem;
    border-right: 1.5px solid rgba(255,255,255,0.45);
    border-bottom: 1.5px solid rgba(255,255,255,0.45);
    transform: rotate(-45deg);
    transition: transform 0.2s ease;
    margin-left: auto;
    flex-shrink: 0;
}

    .chevron.open[b-os95guojx2] {
        transform: rotate(45deg);
    }

.chevron-sm[b-os95guojx2] {
    display: inline-block;
    width: 0.32rem;
    height: 0.32rem;
    border-right: 1.5px solid rgba(255,255,255,0.35);
    border-bottom: 1.5px solid rgba(255,255,255,0.35);
    transform: rotate(-45deg);
    transition: transform 0.2s ease;
    margin-left: auto;
    flex-shrink: 0;
}

    .chevron-sm.open[b-os95guojx2] {
        transform: rotate(45deg);
    }

/* ── Subgroup section headers ──────────────────────────────────────────────── */
.menu-subgroup-header[b-os95guojx2] {
    display: flex;
    align-items: center;
    padding: 0.55rem 0.75rem 0.3rem 2.1rem;
    margin: 0.4rem 0.5rem 0.1rem;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(160, 190, 225, 0.5);
    cursor: pointer;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    transition: color 0.15s ease;
}

    .menu-subgroup-header:hover[b-os95guojx2] {
        color: rgba(180, 210, 240, 0.85);
    }

    .menu-subgroup-header.open[b-os95guojx2] {
        color: rgba(180, 210, 240, 0.75);
    }

/* ── Nav items & links ─────────────────────────────────────────────────────── */
.nav-item[b-os95guojx2] {
    width: 100%;
    padding-bottom: 0;
}

    .nav-item:first-of-type[b-os95guojx2] {
        padding-top: 0.5rem;
    }

    .nav-item[b-os95guojx2]  a {
        display: flex;
        align-items: center;
        padding: 0.45rem 0.75rem;
        margin: 0.05rem 0.5rem;
        border-radius: 5px;
        font-size: 0.855rem;
        color: rgba(200, 218, 242, 0.78);
        transition: background-color 0.12s ease, color 0.12s ease;
        text-decoration: none;
        line-height: 1.4;
    }

    .nav-item[b-os95guojx2]  a.active {
        background-color: rgba(255, 255, 255, 0.18);
        color: #fff;
        font-weight: 500;
    }

    .nav-item[b-os95guojx2]  a:hover {
        background-color: rgba(255, 255, 255, 0.1);
        color: rgba(255, 255, 255, 0.95);
        text-decoration: none;
    }

/* Sub-level items (inside an expanded group) */
.nav-item-sub[b-os95guojx2]  a {
    padding-left: 2.1rem !important;
}

/* Deep items (inside an expanded subgroup) */
.nav-item-deep[b-os95guojx2]  a {
    padding-left: 2.8rem !important;
    font-size: 0.83rem !important;
    color: rgba(190, 210, 238, 0.72) !important;
}

/* Logout button matches nav-link style */
.nav-item .btn-link.nav-link[b-os95guojx2] {
    display: flex;
    align-items: center;
    padding: 0.45rem 0.75rem;
    margin: 0.05rem 0.5rem;
    border-radius: 5px;
    font-size: 0.855rem;
    color: rgba(200, 218, 242, 0.78);
    transition: background-color 0.12s ease, color 0.12s ease;
    width: calc(100% - 1rem);
}

    .nav-item .btn-link.nav-link:hover[b-os95guojx2] {
        background-color: rgba(255, 255, 255, 0.1);
        color: rgba(255, 255, 255, 0.95);
        text-decoration: none;
    }

/* ── Responsive ────────────────────────────────────────────────────────────── */
@media (max-width: 640.98px) {
    .nav-scrollable[b-os95guojx2] {
        height: calc(100vh - 3.5rem);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .navbar-toggler[b-os95guojx2] {
        padding: 0.5rem;
        font-size: 1.25rem;
        width: 44px;
        height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

@media (min-width: 641px) {
    .navbar-toggler[b-os95guojx2] {
        display: none;
    }

    .collapse[b-os95guojx2] {
        display: block !important;
    }

    .nav-scrollable[b-os95guojx2] {
        height: calc(100vh - 3.5rem);
        overflow-y: auto;
    }
}
