/* ==========================================================================
   NEXUSTAP - CYBER OBSIDIAN & CRIMSON NEON MASTER THEME
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800;900&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

/* Força Dark Mode em Todas as Camadas da Página */
html, 
html.dark, 
body, 
.fi-body, 
.fi-main, 
.fi-app, 
.fi-layout {
    background-color: #08080a !important;
    color: #f4f4f5 !important;
    font-family: 'Plus Jakarta Sans', sans-serif !important;
}

/* TOPBAR / MENU SUPERIOR COM NAVEGAÇÃO HORIZONTAL FULL WIDTH */
header,
nav,
.fi-topbar,
.fi-topbar-header,
.fi-topbar > div,
.fi-topbar nav,
header.fi-topbar,
nav.fi-topbar,
.fi-topbar nav > div {
    background: #0a0a0e !important;
    background-color: #0a0a0e !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

/* Links de Navegação Horizontal no Topo (Top Navigation) */
.fi-topbar-item a,
.fi-topbar-nav-groups a,
.fi-topbar-item-button {
    border-radius: 0.65rem !important;
    padding: 0.5rem 0.85rem !important;
    font-weight: 600 !important;
    font-size: 0.875rem !important;
    color: #a1a1aa !important;
    transition: all 0.2s ease !important;
}

.fi-topbar-item a:hover,
.fi-topbar-nav-groups a:hover {
    color: #ffffff !important;
    background: rgba(225, 29, 72, 0.12) !important;
}

.fi-topbar-item-active a,
.fi-topbar-item-active button,
.fi-topbar-nav-groups .fi-active {
    background: linear-gradient(135deg, rgba(225, 29, 72, 0.25) 0%, rgba(225, 29, 72, 0.08) 100%) !important;
    color: #ffffff !important;
    font-weight: 800 !important;
    border: 1px solid rgba(225, 29, 72, 0.4) !important;
    box-shadow: 0 4px 15px -3px rgba(225, 29, 72, 0.3) !important;
}

/* Layout Full Width (Sem margens restritivas laterais) */
.fi-main,
.fi-main-ctn,
.fi-page,
.fi-ta-ctn {
    width: 100% !important;
    max-width: 100% !important;
}

/* Sidebar com Fundo Preto Obsidian e Borda Sutil */
aside,
.fi-sidebar,
.fi-sidebar-header {
    background: #0a0a0d !important;
    background-color: #0a0a0d !important;
    border-right: 1px solid rgba(255, 255, 255, 0.08) !important;
}

/* Itens e Nomes das Abas da Sidebar */
.fi-sidebar-item-label, 
.fi-sidebar-item-button span,
.fi-sidebar-group-label {
    color: #d4d4d8 !important;
    font-weight: 600 !important;
    font-size: 0.875rem !important;
}

.fi-sidebar-item-icon {
    color: #a1a1aa !important;
}

.fi-sidebar-item-button:hover {
    background: rgba(225, 29, 72, 0.12) !important;
    transform: translateX(4px) !important;
}

.fi-sidebar-item-button:hover .fi-sidebar-item-label,
.fi-sidebar-item-button:hover .fi-sidebar-item-icon {
    color: #ffffff !important;
}

/* Item Ativo da Sidebar */
.fi-sidebar-item-active .fi-sidebar-item-button {
    background: linear-gradient(90deg, rgba(225, 29, 72, 0.3) 0%, rgba(225, 29, 72, 0.05) 100%) !important;
    border-left: 3px solid #e11d48 !important;
    box-shadow: 0 4px 20px -5px rgba(225, 29, 72, 0.4) !important;
}

.fi-sidebar-item-active .fi-sidebar-item-label {
    color: #ffffff !important;
    font-weight: 800 !important;
}

.fi-sidebar-item-active .fi-sidebar-item-icon {
    color: #fb7185 !important;
}

/* Título de Páginas e Breadcrumbs */
.fi-header-heading,
.fi-breadcrumbs,
.fi-breadcrumbs a {
    color: #ffffff !important;
    font-family: 'Outfit', sans-serif !important;
    font-weight: 800 !important;
}

.fi-breadcrumbs span {
    color: #71717a !important;
}

/* Avatar do Usuário no Topbar */
.fi-user-avatar {
    border: 2px solid #e11d48 !important;
}

/* ==========================================================================
   TABELAS FILAMENT (FILAMENT TABLES) - DESIGN DARK LUXO
   ========================================================================== */
.fi-ta-ctn,
.fi-ta-content,
.fi-section,
.fi-section-content,
.fi-card {
    background-color: #0e0e12 !important;
    background: #0e0e12 !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 1rem !important;
    box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.7) !important;
    color: #f4f4f5 !important;
}

.fi-ta-table {
    background-color: transparent !important;
    color: #f4f4f5 !important;
}

.fi-ta-header,
.fi-ta-header-ctn {
    background: #0e0e12 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
    padding: 1rem 1.25rem !important;
}

.fi-ta-header-cell,
th.fi-ta-header-cell {
    background: #14141a !important;
    color: #a1a1aa !important;
    font-family: 'Outfit', sans-serif !important;
    font-size: 0.75rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

.fi-ta-header-cell span {
    color: #a1a1aa !important;
}

.fi-ta-row,
tr.fi-ta-row {
    background-color: transparent !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04) !important;
    transition: background-color 0.2s ease !important;
}

.fi-ta-row:hover,
tr.fi-ta-row:hover {
    background-color: rgba(225, 29, 72, 0.04) !important;
}

.fi-ta-cell,
td.fi-ta-cell {
    color: #e4e4e7 !important;
    font-size: 0.875rem !important;
}

/* Paginação da Tabela */
.fi-ta-pagination,
.fi-pagination {
    background: #0e0e12 !important;
    border-top: 1px solid rgba(255, 255, 255, 0.06) !important;
    color: #a1a1aa !important;
}

.fi-pagination-records-per-page-select select {
    background: #18181f !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: #ffffff !important;
    border-radius: 0.5rem !important;
}

/* Campos de Busca e Inputs */
.fi-input-wrp,
.fi-input,
.fi-ta-search-field input,
.fi-select-input {
    background-color: #14141a !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
    color: #ffffff !important;
    border-radius: 0.75rem !important;
}

.fi-input-wrp:focus-within {
    border-color: #e11d48 !important;
    box-shadow: 0 0 0 1px #e11d48 !important;
}

/* Botões Primários */
.fi-btn-primary,
button.fi-btn-primary,
a.fi-btn-primary {
    background: linear-gradient(135deg, #e11d48 0%, #be123c 100%) !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    border-radius: 0.75rem !important;
    box-shadow: 0 4px 15px -3px rgba(225, 29, 72, 0.4) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
}

.fi-btn-primary:hover {
    transform: translateY(-1px) !important;
    box-shadow: 0 6px 20px -3px rgba(225, 29, 72, 0.6) !important;
}

/* Botões Secundários */
.fi-btn-secondary {
    background: #18181f !important;
    color: #e4e4e7 !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 0.75rem !important;
}

.fi-btn-secondary:hover {
    background: #27272a !important;
    color: #ffffff !important;
}

/* Modais do Filament */
.fi-modal-window {
    background: #0e0e12 !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.9) !important;
    border-radius: 1.25rem !important;
}

.fi-modal-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

.fi-modal-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
}

/* Badges */
.fi-badge {
    font-weight: 700 !important;
    letter-spacing: 0.025em !important;
    border-radius: 0.5rem !important;
}
