/* /Layout/AdminLayout.razor.rz.scp.css */
:root[b-sz7ad3k0lo] {
    --bg-deep: #080808;
    --bg-sidebar: #0c0c0c;
    --accent-magenta: #FF00FF;
    --text-primary: #FFFFFF;
    --text-secondary: #888888;
    --border-subtle: rgba(255, 255, 255, 0.05);
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.admin-shell[b-sz7ad3k0lo] {
    display: flex;
    min-height: 100vh;
    background-color: var(--bg-deep);
    color: var(--text-primary);
}

.sidebar[b-sz7ad3k0lo] {
    width: 280px;
    background-color: var(--bg-sidebar);
    border-right: 1px solid var(--border-subtle);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 2.5rem 1.2rem;
    position: fixed;
    height: 100vh;
    z-index: 100;
}

.logo[b-sz7ad3k0lo] {
    font-size: 1.6rem;
    font-weight: 950;
    margin-bottom: 3.5rem;
    padding-left: 0.8rem;
    cursor: pointer;
    letter-spacing: -1px;
}
.logo span[b-sz7ad3k0lo] { color: var(--accent-magenta); }

.nav-group-label[b-sz7ad3k0lo] {
    font-size: 0.65rem;
    font-weight: 800;
    color: #444;
    letter-spacing: 1.5px;
    margin: 1.5rem 0 0.8rem 0.8rem;
}

.nav-menu[b-sz7ad3k0lo] {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.nav-link-item[b-sz7ad3k0lo] {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0.9rem 1rem;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: 12px;
    transition: var(--transition-smooth);
    font-size: 0.9rem;
    font-weight: 600;
    border: none;
    background: transparent;
    cursor: pointer;
    width: 100%;
}

.nav-link-item:hover[b-sz7ad3k0lo] {
    color: white;
    background: rgba(255, 255, 255, 0.03);
    transform: translateX(4px);
}

.nav-link-item.active[b-sz7ad3k0lo] {
    color: white;
    background: rgba(255, 0, 255, 0.1);
    box-shadow: inset 4px 0 0 var(--accent-magenta);
}

.nav-link-item.active[b-sz7ad3k0lo]  .mud-icon-root {
    color: var(--accent-magenta);
}

.btn-logout[b-sz7ad3k0lo] {
    margin-top: auto;
    color: #ff4444;
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.9rem 1rem;
    border-radius: 12px;
    transition: 0.2s;
}

.btn-logout:hover[b-sz7ad3k0lo] {
    background: rgba(255, 68, 68, 0.05);
    color: #ff6666;
}

.main-wrapper[b-sz7ad3k0lo] {
    margin-left: 280px;
    flex-grow: 1;
    min-width: 0;
}

.top-bar[b-sz7ad3k0lo] {
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 3rem;
    background: rgba(8, 8, 8, 0.85);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--border-subtle);
    position: sticky;
    top: 0;
    z-index: 50;
}

.system-label[b-sz7ad3k0lo] {
    color: var(--text-secondary);
    font-weight: 800;
    letter-spacing: 2px;
}

.user-profile-trigger[b-sz7ad3k0lo] {
    display: flex;
    align-items: center;
    padding: 4px 4px 4px 12px;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-subtle);
}

.user-name[b-sz7ad3k0lo] { font-size: 0.85rem; font-weight: 700; color: white; line-height: 1; }
.user-role[b-sz7ad3k0lo] { font-size: 0.7rem; color: var(--accent-magenta); font-weight: 600; margin-top: 2px; }

.content-body[b-sz7ad3k0lo] {
    padding: 3rem;
    animation: slideUp-b-sz7ad3k0lo 0.5s ease-out;
}

@keyframes slideUp-b-sz7ad3k0lo {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 1024px) {
    .sidebar[b-sz7ad3k0lo] { width: 80px; padding: 2rem 0.5rem; }
    .nav-link-item span[b-sz7ad3k0lo], .logo[b-sz7ad3k0lo], .nav-group-label[b-sz7ad3k0lo], .user-meta[b-sz7ad3k0lo] { display: none; }
    .main-wrapper[b-sz7ad3k0lo] { margin-left: 80px; }
    .nav-link-item[b-sz7ad3k0lo] { justify-content: center; padding: 1rem; }
}
/* /Layout/MainLayout.razor.rz.scp.css */
@inherits LayoutComponentBase
@namespace ElasDev.Web.Layout
@using Microsoft.AspNetCore.Components @* ADICIONE ESTA LINHA *@
@using ElasDev.Web.Services
@inject AuthService AuthService
@inject NavigationManager Navigation

@* Componentes OBRIGATÓRIOS do MudBlazor *@
<MudThemeProvider Theme="ElasDevTheme" IsDarkMode="true" />
<MudPopoverProvider />
<MudDialogProvider FullWidth="true" MaxWidth="MaxWidth.ExtraSmall" />
<MudSnackbarProvider />

<div class="page-layout">
    @* O Header agora centraliza a barra de navegação e o perfil do usuário *@
    <Header />

    <main class="content-wrapper">
        <div class="container-fluid px-6">
            @Body
        </div>
    </main>

    <Footer />
</div>

@code {
    // Definição do tema Dark Customizado para a ElasDev
    private MudTheme ElasDevTheme = new MudTheme()[b-9fck74ee6c]
    {
        PaletteDark = new PaletteDark()
        {
            Primary = "#FF00FF", // Magenta ElasDev
            Secondary = "#00ff88", // Verde Neon
            Background = "#080808",
            AppbarBackground = "#080808",
            DrawerBackground = "#121212",
            Surface = "#121212",
            TextPrimary = "#FFFFFF",
            TextSecondary = "#a1a1aa"
        }
    };

    protected override async Task OnInitializedAsync()[b-9fck74ee6c]
    {
        // Garante que o HttpClient recupere o token do LocalStorage no F5
        await AuthService.InitializeAuthHeader();
    }
}
/* /Layout/NavMenu.razor.rz.scp.css */
