/* /Layout/MainLayout.razor.rz.scp.css */
/* --- LAYOUT GENERALE ENTERPRISE --- */
.enterprise-layout[b-nvtlwsduxh] {
    display: flex;
    min-height: 100vh;
    background-color: #f3f4f6; /* Grigio chiarissimo di fondo (Stile Google Cloud) */
    font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    overflow-x: hidden;
}

/* --- SIDEBAR --- */
.enterprise-sidebar[b-nvtlwsduxh] {
    width: 280px;
    background-color: #0f172a; /* Blu Navy scurissimo profondo (Stile Azure) */
    color: #94a3b8;
    display: flex;
    flex-direction: column;
    z-index: 1040;
    transition: transform 0.3s ease;
}

[b-nvtlwsduxh] .sidebar-header {
    height: 70px;
    display: flex;
    align-items: center;
    padding: 0 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    background-color: #0b1120;
}

[b-nvtlwsduxh] .logo-box {
    background-color: rgba(26, 115, 232, 0.1);
    border-radius: 8px;
    padding: 6px;
    margin-right: 12px;
    display: flex;
    align-items: center;
}

[b-nvtlwsduxh] .text-enterprise {
    color: #3b82f6;
}

[b-nvtlwsduxh] .brand-text {
    color: #ffffff;
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

/* --- NAV MENU ITEMS --- */
[b-nvtlwsduxh] .nav-scrollable {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem 1rem;
}

[b-nvtlwsduxh] .nav-section {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
    color: #475569;
    margin-bottom: 0.75rem;
    padding-left: 0.75rem;
}

[b-nvtlwsduxh] .nav-item {
    margin-bottom: 0.25rem;
}

[b-nvtlwsduxh] .nav-link {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    color: #cbd5e1;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.2s ease;
    text-decoration: none;
}

[b-nvtlwsduxh] .nav-icon {
    margin-right: 12px;
    opacity: 0.7;
    display: flex;
    align-items: center;
}

[b-nvtlwsduxh] .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.05);
    color: #ffffff;
}

    [b-nvtlwsduxh] .nav-link:hover .nav-icon {
        opacity: 1;
    }

[b-nvtlwsduxh] .nav-link.active {
    background-color: #1a73e8; /* Blu Google Enterprise */
    color: #ffffff;
    box-shadow: 0 4px 6px -1px rgba(26, 115, 232, 0.3);
}

    [b-nvtlwsduxh] .nav-link.active .nav-icon {
        opacity: 1;
    }

/* --- MAIN CONTENT & TOPBAR --- */
.enterprise-main[b-nvtlwsduxh] {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.enterprise-topbar[b-nvtlwsduxh] {
    height: 70px;
    background-color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
    z-index: 1030;
    position: sticky;
    top: 0;
}

.topbar-left[b-nvtlwsduxh], .topbar-right[b-nvtlwsduxh] {
    display: flex;
    align-items: center;
}

.portal-badge[b-nvtlwsduxh] {
    background-color: #f1f5f9;
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #475569;
    display: flex;
    align-items: center;
    border: 1px solid #e2e8f0;
}

.dot-indicator[b-nvtlwsduxh] {
    width: 8px;
    height: 8px;
    background-color: #10b981; /* Verde Successo */
    border-radius: 50%;
    margin-right: 8px;
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2);
}

.header-divider[b-nvtlwsduxh] {
    height: 30px;
    width: 1px;
    background-color: #e2e8f0;
    margin: 0 1.5rem;
}

.btn-logout[b-nvtlwsduxh] {
    border-radius: 8px;
    padding: 0.5rem 1.25rem;
    display: flex;
    align-items: center;
    transition: all 0.2s;
}

.enterprise-content[b-nvtlwsduxh] {
    flex: 1;
    padding: 2rem;
    overflow-y: auto;
}

.content-wrapper[b-nvtlwsduxh] {
    max-width: 1400px;
    margin: 0 auto;
}

/* --- RESPONSIVE MOBILE --- */
.mobile-overlay[b-nvtlwsduxh] {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(15, 23, 42, 0.6);
    z-index: 1035;
    backdrop-filter: blur(2px);
}

.mobile-toggle[b-nvtlwsduxh] {
    background: none;
    border: none;
    color: #475569;
    padding: 0;
    margin-right: 1rem;
}

@media (max-width: 768px) {
    .enterprise-sidebar[b-nvtlwsduxh] {
        position: fixed;
        top: 0;
        bottom: 0;
        left: 0;
        transform: translateX(-100%);
    }

    .enterprise-layout.sidebar-open .enterprise-sidebar[b-nvtlwsduxh] {
        transform: translateX(0);
    }

    .enterprise-layout.sidebar-open .mobile-overlay[b-nvtlwsduxh] {
        display: block;
    }

    .enterprise-topbar[b-nvtlwsduxh] {
        padding: 0 1rem;
    }

    .enterprise-content[b-nvtlwsduxh] {
        padding: 1.5rem 1rem;
    }
}
