/* ============================================================================
   Filament Admin — Dark Mode Overrides
   ============================================================================
   Extracted from FilamentServiceProvider renderHook for cacheability and CSP.
   ============================================================================ */

html, body, .fi-body {
    background-color: #111111 !important;
    color: #e5e7eb !important;
}

.fi-sidebar,
.fi-sidebar-nav,
.fi-sidebar-header {
    background-color: #0e0e0e !important;
    border-right: 1px solid rgba(255, 255, 255, 0.05) !important;
}

.fi-topbar,
.fi-topbar > div {
    background-color: #0e0e0e !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
}

.fi-sidebar-item-active .fi-sidebar-item-label,
.fi-sidebar-item-active .fi-sidebar-item-icon {
    color: #C6F12B !important;
}

/* Login card */
.fi-simple-layout,
.fi-simple-main {
    background-color: #111111 !important;
}

.fi-simple-main > div {
    background-color: #1a1a1a !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
}

/* Stats cards — hardcoded bg-white in Filament */
.fi-wi-stats-overview-stat {
    background-color: #1e1e1e !important;
    color: #e5e7eb !important;
}

.fi-wi-stats-overview-stat .fi-wi-stats-overview-stat-value {
    color: #C6F12B !important;
}

.fi-wi-stats-overview-stat .fi-wi-stats-overview-stat-label {
    color: #9ca3af !important;
}

/* All fi- components with white bg */
[class*=fi-][class*=bg-white],
[class*=fi-][class*=bg-gray-50] {
    background-color: #1a1a1a !important;
}

/* Form inputs */
.fi-input-wrp {
    background-color: #1e1e1e !important;
    border-color: rgba(255, 255, 255, 0.12) !important;
}

input:not([type=checkbox]):not([type=radio]),
textarea,
select {
    background-color: #1e1e1e !important;
    color: #fff !important;
}

/* Table */
.fi-ta-ctn,
.fi-ta-header-cell,
.fi-ta-row,
.fi-ta-empty-state {
    background-color: #1a1a1a !important;
}

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

.fi-ta-row:hover td,
[class*=fi-ta-row]:hover {
    background-color: #242424 !important;
}

/* Sections and cards */
.fi-section,
.fi-card {
    background-color: #1a1a1a !important;
    border-color: rgba(255, 255, 255, 0.07) !important;
}

/* Dropdowns & modals */
.fi-dropdown-panel,
.fi-modal-window,
.fi-ac-modal-ctn {
    background-color: #1e1e1e !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
}

/* Labels */
label,
.fi-fo-field-wrp label {
    color: #9ca3af !important;
}

/* All text default */
.fi-main-ctn *:not(button):not(a) {
    color: inherit;
}
