/* /Layout/MainLayout.razor.rz.scp.css */
[b-6267u11ham] .rz-sidebar {
    background-image: linear-gradient(180deg, rgb(5, 39, 103) 0%, #3a0647 70%);
    flex-shrink: 0;
    overflow-y: auto;
}

[b-6267u11ham] .rz-layout {
    display: flex;
    flex-direction: column;
    height: 100vh;
    width: 100%;
}

[b-6267u11ham] .rz-header {
    flex-shrink: 0;
    overflow: visible;
    padding: 0;
    display: flex;
    align-items: stretch;
}

[b-6267u11ham] .rz-body {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

[b-6267u11ham] .rz-header .rz-header-main {
    display: flex;
    align-items: center;
    width: 100%;
    min-width: 0;
    padding: 0 0.5rem;
    box-sizing: border-box;
}

[b-6267u11ham] .rz-sidebar-toggle {
    flex-shrink: 0;
    /* Ensure toggle is touchable on mobile */
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.user-avatar[b-6267u11ham] {
    display: inline-flex;
    width: 1.8rem;
    height: 1.8rem;
    border-radius: 50%;
    background: var(--rz-primary);
    align-items: center;
    justify-content: center;
    color: black;
    margin-right: 0.4rem;
}

[b-6267u11ham] .user-avatar .rz-icon {
    font-size: 1rem;
}

.profile-label[b-6267u11ham] {
    color: black;
    white-space: nowrap;
}

[b-6267u11ham] .rz-header .rz-splitbutton,
[b-6267u11ham] .rz-header .rz-button {
    flex-shrink: 0;
}

/* Mobile/Tablet responsive: make sidebar offcanvas on small screens */
@media (max-width: 768px) {
    [b-6267u11ham] .rz-sidebar {
        position: fixed;
        left: 0;
        top: 0;
        height: 100%;
        width: 250px;
        z-index: 1000;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }

    [b-6267u11ham] .rz-sidebar.rz-sidebar-expanded {
        transform: translateX(0);
    }

    /* Modal backdrop overlay when sidebar is open */
    [b-6267u11ham] .rz-sidebar.rz-sidebar-expanded::before {
        content: '';
        position: fixed;
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 999;
    }

    [b-6267u11ham] .rz-layout {
        flex-direction: column;
    }

    [b-6267u11ham] .rz-body {
        width: 100%;
    }
}

/* /Layout/NavMenu.razor.rz.scp.css */
.sidebar-brand[b-0o6ulax90t] {
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    padding: 0.5rem;
}

.sidebar-brand a[b-0o6ulax90t] {
    color: white;
    text-decoration: none;
    word-break: break-word;
}

.nav-menu[b-0o6ulax90t] {
    overflow-y: auto;
    flex: 1;
}

.nav-menu[b-0o6ulax90t]  .rz-navigation {
    display: flex;
    flex-direction: column;
}

.nav-menu[b-0o6ulax90t]  .rz-navigation-item-wrapper {
    display: flex;
    align-items: center;
    white-space: normal;
    overflow: visible;
}

.nav-menu[b-0o6ulax90t]  .rz-navigation-item-wrapper a {
    color: #d7d7d7;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    text-decoration: none;
    flex: 1;
    word-break: break-word;
}

.nav-menu[b-0o6ulax90t]  .rz-navigation-item-wrapper:hover a {
    color: white;
}

.nav-menu[b-0o6ulax90t]  .rz-navigation-item-wrapper.rz-state-active a {
    color: white;
    background-color: rgba(255,255,255,0.25);
    border-radius: 4px;
}
