/* /Components/Layout/MainLayout.razor.rz.scp.css */
.page[b-l414ayh2sm] {
    position: relative;
    display: flex;
    flex-direction: column;
}

main[b-l414ayh2sm] {
    flex: 1;
}

.sidebar[b-l414ayh2sm] {
    background-image: linear-gradient(180deg, rgb(5, 39, 103) 0%, #3a0647 70%);
}

.top-row[b-l414ayh2sm] {
    background-color: #f7f7f7;
    border-bottom: 1px solid #d6d5d5;
    justify-content: flex-end;
    height: 3.5rem;
    display: flex;
    align-items: center;
}

    .top-row[b-l414ayh2sm]  a, .top-row[b-l414ayh2sm]  .btn-link {
        white-space: nowrap;
        margin-left: 1.5rem;
        text-decoration: none;
    }

    .top-row[b-l414ayh2sm]  a:hover, .top-row[b-l414ayh2sm]  .btn-link:hover {
        text-decoration: underline;
    }

    .top-row[b-l414ayh2sm]  a:first-child {
        overflow: hidden;
        text-overflow: ellipsis;
    }

@media (max-width: 640.98px) {
    .top-row[b-l414ayh2sm] {
        justify-content: space-between;
    }

    .top-row[b-l414ayh2sm]  a, .top-row[b-l414ayh2sm]  .btn-link {
        margin-left: 0;
    }
}

@media (min-width: 641px) {
    .page[b-l414ayh2sm] {
        flex-direction: row;
    }

    .sidebar[b-l414ayh2sm] {
        width: 250px;
        height: 100vh;
        position: sticky;
        top: 0;
    }

    .top-row[b-l414ayh2sm] {
        position: sticky;
        top: 0;
        z-index: 1;
    }

    .top-row.auth[b-l414ayh2sm]  a:first-child {
        flex: 1;
        text-align: right;
        width: 0;
    }

    .top-row[b-l414ayh2sm], article[b-l414ayh2sm] {
        padding-left: 2rem !important;
        padding-right: 1.5rem !important;
    }
}

#blazor-error-ui[b-l414ayh2sm] {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    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-l414ayh2sm] {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }
/* /Components/Layout/NavMenu.razor.rz.scp.css */
/* ========================================
   SIDEBAR CONTAINER - 336px width (20% increase from 280px)
========================================= */
.sidebar[b-iw5clxtt65] {
    width: 336px;
    height: 100vh;
    background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
    display: flex;
    flex-direction: column;
    position: fixed;
    left: 0;
    top: 0;
    overflow-y: auto;
    overflow-x: hidden;
    box-shadow: 4px 0 16px rgba(0, 0, 0, 0.15);
    z-index: 1000;
}

/* Custom Scrollbar */
.sidebar[b-iw5clxtt65]::-webkit-scrollbar {
    width: 8px;
}

.sidebar[b-iw5clxtt65]::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

.sidebar[b-iw5clxtt65]::-webkit-scrollbar-thumb {
    background: rgba(99, 102, 241, 0.4);
    border-radius: 4px;
}

.sidebar[b-iw5clxtt65]::-webkit-scrollbar-thumb:hover {
    background: rgba(99, 102, 241, 0.6);
}

/* ========================================
   SIDEBAR HEADER
========================================= */
.sidebar-header[b-iw5clxtt65] {
    padding: 24px 24px 20px 24px;
    border-bottom: 1px solid rgba(99, 102, 241, 0.2);
    background: rgba(99, 102, 241, 0.05);
}

.brand[b-iw5clxtt65] {
    display: flex;
    align-items: center;
    gap: 14px;
}

.brand-icon[b-iw5clxtt65] {
    font-size: 28px;
    line-height: 1;
    filter: drop-shadow(0 2px 4px rgba(99, 102, 241, 0.3));
}

.brand-text[b-iw5clxtt65] {
    font-size: 20px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.03em;
}

/* ========================================
   SIDEBAR NAVIGATION
========================================= */
.sidebar-nav[b-iw5clxtt65] {
    flex: 1;
    padding: 20px 0;
    overflow-y: auto;
}

/* Section Title */
.nav-section-title[b-iw5clxtt65] {
    padding: 24px 24px 10px 24px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #818cf8;
    margin-top: 8px;
}

.nav-section-title:first-child[b-iw5clxtt65] {
    margin-top: 0;
}

/* ========================================
   NAV ITEMS
========================================= */
.nav-item[b-iw5clxtt65] {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 24px;
    margin: 3px 16px;
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.85);
    font-size: 14.5px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.nav-item:hover[b-iw5clxtt65] {
    background: linear-gradient(90deg, rgba(99, 102, 241, 0.15) 0%, rgba(99, 102, 241, 0.05) 100%);
    color: #ffffff;
    transform: translateX(2px);
}

.nav-item.active[b-iw5clxtt65] {
    background: linear-gradient(90deg, rgba(99, 102, 241, 0.25) 0%, rgba(99, 102, 241, 0.10) 100%);
    color: #a5b4fc;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.15);
}

.nav-item.active[b-iw5clxtt65]::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 28px;
    background: linear-gradient(180deg, #818cf8 0%, #6366f1 100%);
    border-radius: 0 3px 3px 0;
    box-shadow: 0 0 8px rgba(99, 102, 241, 0.5);
}

.nav-icon[b-iw5clxtt65] {
    font-size: 19px;
    width: 19px;
    flex-shrink: 0;
    opacity: 0.95;
    color: #818cf8;
}

.nav-item.active .nav-icon[b-iw5clxtt65] {
    color: #a5b4fc;
}

.nav-text[b-iw5clxtt65] {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Badge Count */
.badge-count[b-iw5clxtt65] {
    background: linear-gradient(135deg, #f59e0b 0%, #f97316 100%);
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 12px;
    min-width: 24px;
    text-align: center;
    box-shadow: 0 2px 6px rgba(245, 158, 11, 0.3);
}

/* ========================================
   NAV GROUPS (Collapsible)
========================================= */
.nav-group[b-iw5clxtt65] {
    margin: 4px 0;
}

.nav-group-header[b-iw5clxtt65] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 24px;
    margin: 0 16px;
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.85);
    font-size: 14.5px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-group-header:hover[b-iw5clxtt65] {
    background: linear-gradient(90deg, rgba(99, 102, 241, 0.12) 0%, rgba(99, 102, 241, 0.04) 100%);
    color: #ffffff;
}

.nav-group-title[b-iw5clxtt65] {
    display: flex;
    align-items: center;
    gap: 14px;
    flex: 1;
}

.toggle-icon[b-iw5clxtt65] {
    font-size: 13px;
    opacity: 0.7;
    color: #818cf8;
    transition: transform 0.25s ease;
}

/* Nav Group Items (Subitems) */
.nav-group-items[b-iw5clxtt65] {
    padding: 6px 0;
    animation: slideDown-b-iw5clxtt65 0.3s ease;
}

@keyframes slideDown-b-iw5clxtt65 {
    from {
        opacity: 0;
        max-height: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        max-height: 600px;
        transform: translateY(0);
    }
}

.nav-subitem[b-iw5clxtt65] {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px 24px 10px 60px;
    margin: 2px 16px;
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.75);
    font-size: 13.5px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.nav-subitem[b-iw5clxtt65]::before {
    content: '';
    position: absolute;
    left: 40px;
    top: 50%;
    transform: translateY(-50%);
    width: 5px;
    height: 5px;
    background: rgba(129, 140, 248, 0.4);
    border-radius: 50%;
    transition: all 0.2s ease;
}

.nav-subitem:hover[b-iw5clxtt65] {
    background: rgba(99, 102, 241, 0.08);
    color: rgba(255, 255, 255, 0.95);
}

.nav-subitem:hover[b-iw5clxtt65]::before {
    background: #818cf8;
    box-shadow: 0 0 6px rgba(129, 140, 248, 0.6);
}

.nav-subitem.active[b-iw5clxtt65] {
    background: linear-gradient(90deg, rgba(99, 102, 241, 0.15) 0%, rgba(99, 102, 241, 0.05) 100%);
    color: #a5b4fc;
    font-weight: 600;
}

.nav-subitem.active[b-iw5clxtt65]::before {
    background: linear-gradient(135deg, #818cf8 0%, #6366f1 100%);
    width: 6px;
    height: 6px;
    box-shadow: 0 0 8px rgba(129, 140, 248, 0.8);
}

/* ========================================
   RESPONSIVE
========================================= */
@media (max-width: 768px) {
    .sidebar[b-iw5clxtt65] {
        width: 100%;
        max-width: 336px;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }

    .sidebar.open[b-iw5clxtt65] {
        transform: translateX(0);
    }
}

/* ========================================
   UTILITY CLASSES
========================================= */
.nav-section-divider[b-iw5clxtt65] {
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(99, 102, 241, 0.3) 50%, transparent 100%);
    margin: 20px 24px;
}
