/* _content/SchoolPortal/Components/Layout/MainLayout.razor.rz.scp.css */
.page[b-t9y1saz8o3] {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* The Overlay */
.sidebar-overlay[b-t9y1saz8o3] {
    position: fixed;
    top: 55px;
    width: 100vw;
    height: 100vh;
    background: rgba(36, 55, 70, 0.46);
    z-index: 1010;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

    .sidebar-overlay.active[b-t9y1saz8o3] {
        opacity: 1;
        visibility: visible;
    }

/* DEFAULT BLAZOR ERROR UI */
#blazor-error-ui[b-t9y1saz8o3] {
    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-t9y1saz8o3] {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }
/* _content/SchoolPortal/Components/Layout/NavMenu.razor.rz.scp.css */
#sidebar[b-2qhbldijkm] {
    width: 250px;
    position: fixed;
    top: 55px;
    left: -250px;
    height: 100vh;
    z-index: 1020;
    /* Replaced hardcoded black with theme-aware background */
    background: var(--bs-body-bg);
    border-right: 1px solid var(--bs-border-color);
    transition: left 0.3s ease-in-out;
    overflow-y: auto;
    box-shadow: 3px 3px 10px rgba(0, 0, 0, 0.1);
    font-weight: bold;
}

    #sidebar.active[b-2qhbldijkm] {
        left: 0;
    }

    /* Modern Scrollbar linked to theme muted colors */
    #sidebar[b-2qhbldijkm]::-webkit-scrollbar {
        width: 6px;
    }

    #sidebar[b-2qhbldijkm]::-webkit-scrollbar-thumb {
        background-color: var(--bs-secondary-color);
        border-radius: 4px;
    }

    #sidebar .sidebar-footer[b-2qhbldijkm] {
        padding: 5px 10px 0px 10px;
        color: var(--bs-secondary-color); /* Muted theme text */
        font-size: x-small;
        font-weight: lighter;
        float: left;
    }

/* 1. Reset the overall list padding just in case */
ul.components[b-2qhbldijkm] {
    padding: 20px 0;
    border-bottom: 1px solid var(--bs-border-color);
    margin: 0;
}

    /* Added ::deep so it finds the <a> tags generated by the NavLink component */
    ul.components[b-2qhbldijkm]  a.nav-link,
    ul.components a.sidebarsubmenu[b-2qhbldijkm] {
        padding: 12px 20px;
        background: transparent;
        font-size: 1.05em;
        display: block;
        color: var(--bs-body-color);
        text-decoration: none;
    }

        ul.components[b-2qhbldijkm]  a.nav-link:hover,
        ul.components a.sidebarsubmenu:hover[b-2qhbldijkm] {
            color: var(--bs-primary);
            background: var(--bs-tertiary-bg);
        }

/* Submenu Collapse Arrows */
a.sidebarsubmenu[b-2qhbldijkm]::after {
    content: 'fa fa-caret-down';
    float: right;
    font-size: 0.7em;
    margin-top: 5px;
    transition: transform 0.2s;
}

a[aria-expanded="true"].sidebarsubmenu[b-2qhbldijkm]::after {
    transform: rotate(180deg);
}

/* Deep indent for submenu items */
ul.components ul[b-2qhbldijkm]  a.nav-link {
    font-size: 0.95em !important;
    padding: 10px 10px 10px 20px !important;
}
