@import 'tailwindcss';

@source '../../../../vendor/filament/**/*.blade.php';
@source '../../../../app/Filament/**/*.php';

/* Filament base layer */
@layer base {
    :root.dark {
        color-scheme: dark;
    }

    [data-field-wrapper] {
        scroll-margin-top: 8rem;
    }
}

/* ============================================================================
   OTM Motors — Glass Theme for Filament Admin
   Matching the website's glassmorphism design language
   ============================================================================ */

/* --------------------------------------------------------------------------
   Animations (kept minimal and professional)
   -------------------------------------------------------------------------- */
@keyframes glassFadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes shimmer {
    0%   { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-3px); }
}

@keyframes slideIn {
    from { opacity: 0; transform: translateX(-8px); }
    to   { opacity: 1; transform: translateX(0); }
}

@keyframes glowPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255, 59, 48, 0); }
    50%      { box-shadow: 0 0 16px 2px rgba(255, 59, 48, 0.08); }
}


/* ==========================================================================
   LIGHT MODE — Primary theme, matching OTM Motors website
   ==========================================================================

   Website glass values reference:
   - glass-panel:  rgba(255,255,255,0.85)  blur(24px)        — sidebar
   - glass-navbar: rgba(255,255,255,0.8)   blur(20px) sat(180%) — topbar
   - glass-card:   rgba(255,255,255,0.75)  blur(20px)        — cards
   - glass-input:  rgba(255,255,255,0.6)   blur(10px)        — inputs
   - glass-light:  rgba(255,255,255,0.7)   blur(20px)        — login card
   ========================================================================== */

/* --------------------------------------------------------------------------
   Body / Page Background
   -------------------------------------------------------------------------- */
html body.fi-body {
    background: #e3e3e3 !important;
}

/* --------------------------------------------------------------------------
   Sidebar — glass-panel effect
   Using high specificity to beat Filament's Tailwind utilities
   -------------------------------------------------------------------------- */
html .fi-sidebar,
html aside.fi-sidebar {
    background: rgba(255, 255, 255, 0.85) !important;
    backdrop-filter: blur(24px) !important;
    -webkit-backdrop-filter: blur(24px) !important;
    border-right: 1px solid rgba(0, 0, 0, 0.06) !important;
    box-shadow: inset -1px 0 0 rgba(255, 255, 255, 0.8) !important;
    --tw-ring-shadow: 0 0 #0000 !important;
}

/* Sidebar header (has its own bg-white in Filament) */
html .fi-sidebar-header {
    background: transparent !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
    box-shadow: none !important;
    --tw-ring-shadow: 0 0 #0000 !important;
}

html .fi-sidebar-nav {
    background: transparent !important;
}

/* Sidebar items — smooth interactions */
html .fi-sidebar-item-button {
    transition: all 0.2s ease;
    border-radius: 0.625rem !important;
}

html .fi-sidebar-item-button:hover {
    background: rgba(0, 0, 0, 0.04) !important;
    transform: translateX(2px);
}

/* Active sidebar item — red accent */
html .fi-sidebar-item.fi-active .fi-sidebar-item-button {
    background: rgba(255, 59, 48, 0.08) !important;
    box-shadow: inset 0 0 0 1px rgba(255, 59, 48, 0.12);
}

/* Active item shimmer sweep */
html .fi-sidebar-item.fi-active .fi-sidebar-item-button::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
    background-size: 200% 100%;
    animation: shimmer 3s ease-in-out infinite;
    pointer-events: none;
    border-radius: inherit;
}

/* Staggered entrance */
html .fi-sidebar-item {
    animation: slideIn 0.3s ease-out both;
}
html .fi-sidebar-item:nth-child(1) { animation-delay: 0.02s; }
html .fi-sidebar-item:nth-child(2) { animation-delay: 0.04s; }
html .fi-sidebar-item:nth-child(3) { animation-delay: 0.06s; }
html .fi-sidebar-item:nth-child(4) { animation-delay: 0.08s; }
html .fi-sidebar-item:nth-child(5) { animation-delay: 0.10s; }
html .fi-sidebar-item:nth-child(6) { animation-delay: 0.12s; }
html .fi-sidebar-item:nth-child(7) { animation-delay: 0.14s; }
html .fi-sidebar-item:nth-child(8) { animation-delay: 0.16s; }

/* Sidebar group labels */
html .fi-sidebar-group-label {
    font-size: 0.65rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    opacity: 0.5;
}

/* Sidebar close overlay (mobile) */
html .fi-sidebar-close-overlay {
    background: rgba(0, 0, 0, 0.15) !important;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

/* --------------------------------------------------------------------------
   Topbar — glass-navbar effect
   KEY FIX: target the <nav> inside .fi-topbar which has bg-white
   -------------------------------------------------------------------------- */
html .fi-topbar,
html .fi-topbar nav,
html .fi-topbar > nav {
    background: rgba(255, 255, 255, 0.8) !important;
    backdrop-filter: blur(20px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05) !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05) !important;
    --tw-ring-shadow: 0 0 #0000 !important;
}

/* Loading bar */
html .fi-topbar .fi-topbar-loading-bar {
    background: linear-gradient(90deg, transparent, rgba(255, 59, 48, 0.6), rgba(255, 89, 71, 0.8), rgba(255, 59, 48, 0.6), transparent) !important;
    background-size: 200% 100%;
    animation: shimmer 1.5s linear infinite;
}

/* --------------------------------------------------------------------------
   Stat Cards — glass-card effect
   -------------------------------------------------------------------------- */
html .fi-wi-stats-overview-stat {
    background: rgba(255, 255, 255, 0.75) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border: 1px solid rgba(255, 255, 255, 0.5) !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.6) !important;
    border-radius: 1rem !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    animation: glassFadeIn 0.4s ease-out both;
}

html .fi-wi-stats-overview-stat:nth-child(1) { animation-delay: 0.05s; }
html .fi-wi-stats-overview-stat:nth-child(2) { animation-delay: 0.10s; }
html .fi-wi-stats-overview-stat:nth-child(3) { animation-delay: 0.15s; }
html .fi-wi-stats-overview-stat:nth-child(4) { animation-delay: 0.20s; }
html .fi-wi-stats-overview-stat:nth-child(5) { animation-delay: 0.25s; }
html .fi-wi-stats-overview-stat:nth-child(6) { animation-delay: 0.30s; }

html .fi-wi-stats-overview-stat:hover {
    background: rgba(255, 255, 255, 0.9) !important;
    border-color: rgba(255, 59, 48, 0.15) !important;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.8) !important;
    transform: translateY(-2px);
}

/* Stat card text — ensure readable */
html .fi-wi-stats-overview-stat-label {
    color: #6B6B6B !important;
}

html .fi-wi-stats-overview-stat-value {
    color: #000000 !important;
    font-weight: 700 !important;
}

html .fi-wi-stats-overview-stat-description {
    color: #6B6B6B !important;
}

html .fi-wi-stats-overview-stat-icon {
    animation: float 4s ease-in-out infinite;
}
html .fi-wi-stats-overview-stat:nth-child(2) .fi-wi-stats-overview-stat-icon { animation-delay: 0.5s; }
html .fi-wi-stats-overview-stat:nth-child(3) .fi-wi-stats-overview-stat-icon { animation-delay: 1.0s; }

/* --------------------------------------------------------------------------
   Charts / Widgets — glass-card effect
   -------------------------------------------------------------------------- */
html .fi-wi-chart {
    background: rgba(255, 255, 255, 0.75) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border: 1px solid rgba(255, 255, 255, 0.5) !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.6) !important;
    border-radius: 1rem !important;
    animation: glassFadeIn 0.4s ease-out both;
    animation-delay: 0.2s;
}

/* --------------------------------------------------------------------------
   Sections / Form Panels — glass-card effect
   -------------------------------------------------------------------------- */
html .fi-section {
    background: rgba(255, 255, 255, 0.75) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border: 1px solid rgba(255, 255, 255, 0.5) !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.6) !important;
    border-radius: 1rem !important;
    animation: glassFadeIn 0.4s ease-out both;
}

/* --------------------------------------------------------------------------
   Tables — glass-card effect
   -------------------------------------------------------------------------- */
html .fi-ta-ctn {
    background: rgba(255, 255, 255, 0.75) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border: 1px solid rgba(255, 255, 255, 0.5) !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.6) !important;
    border-radius: 1rem !important;
    overflow: hidden;
    animation: glassFadeIn 0.4s ease-out both;
}

html .fi-ta-table {
    background: transparent !important;
}

html .fi-ta-row {
    transition: background 0.15s ease;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04) !important;
}

html .fi-ta-row:hover {
    background: rgba(255, 59, 48, 0.03) !important;
}

html .fi-ta-header-cell {
    font-size: 0.7rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #9B9B9B !important;
}

/* --------------------------------------------------------------------------
   Forms — glass-input effect
   -------------------------------------------------------------------------- */
html .fi-input-wrp {
    background: rgba(255, 255, 255, 0.6) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
    border-radius: 0.625rem !important;
    transition: all 0.2s ease;
}

html .fi-input-wrp:focus-within {
    background: rgba(255, 255, 255, 0.9) !important;
    border-color: rgba(255, 59, 48, 0.5) !important;
    box-shadow: 0 0 0 3px rgba(255, 59, 48, 0.1) !important;
}

/* Input text — force visible */
html .fi-input-wrp input,
html .fi-input-wrp textarea,
html .fi-input-wrp select,
html .fi-input input,
html .fi-input textarea,
html .fi-input select {
    color: #1a1a1a !important;
}

html .fi-input-wrp input::placeholder,
html .fi-input-wrp textarea::placeholder {
    color: #9B9B9B !important;
}

/* Select / dropdown trigger */
html .fi-select-wrp {
    background: rgba(255, 255, 255, 0.6) !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
    border-radius: 0.625rem !important;
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
html .fi-btn {
    transition: all 0.2s ease;
}

html .fi-btn:hover {
    transform: translateY(-1px);
}

html .fi-btn:active {
    transform: translateY(0) scale(0.98);
}

html .fi-btn-primary {
    box-shadow: 0 4px 14px rgba(255, 59, 48, 0.2) !important;
}

html .fi-btn-primary:hover {
    box-shadow: 0 6px 20px rgba(255, 59, 48, 0.3) !important;
}

/* --------------------------------------------------------------------------
   Modals — glass overlay
   -------------------------------------------------------------------------- */
html .fi-modal-window {
    background: rgba(255, 255, 255, 0.92) !important;
    backdrop-filter: blur(32px) !important;
    -webkit-backdrop-filter: blur(32px) !important;
    border: 1px solid rgba(255, 255, 255, 0.5) !important;
    border-radius: 1rem !important;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15) !important;
    animation: glassFadeIn 0.25s ease-out;
}

html .fi-modal-slide-over-window {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(32px) saturate(150%) !important;
    -webkit-backdrop-filter: blur(32px) saturate(150%) !important;
    border-left: 1px solid rgba(0, 0, 0, 0.06) !important;
    box-shadow: -8px 0 32px rgba(0, 0, 0, 0.1) !important;
}

html .fi-modal-close-overlay {
    background: rgba(0, 0, 0, 0.15) !important;
    backdrop-filter: blur(4px) !important;
    -webkit-backdrop-filter: blur(4px) !important;
}

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

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

/* --------------------------------------------------------------------------
   Dropdowns — glass-card effect
   -------------------------------------------------------------------------- */
html .fi-dropdown-panel {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border: 1px solid rgba(0, 0, 0, 0.06) !important;
    border-radius: 0.75rem !important;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12) !important;
    animation: glassFadeIn 0.15s ease-out;
}

html .fi-dropdown-list-item:hover {
    background: rgba(255, 59, 48, 0.05) !important;
}

/* --------------------------------------------------------------------------
   Login Page — glass-light card on gradient background
   -------------------------------------------------------------------------- */
html .fi-simple-page .fi-simple-main,
html main.fi-simple-main {
    background: rgba(255, 255, 255, 0.7) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border: 1px solid rgba(255, 255, 255, 0.5) !important;
    border-radius: 1.25rem !important;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.6) !important;
    animation: glassFadeIn 0.5s ease-out;
    --tw-ring-shadow: 0 0 #0000 !important;
}

/* Login text — force dark in light mode */
html .fi-simple-header-heading {
    color: #000000 !important;
}

html .fi-simple-header-subheading {
    color: #6B6B6B !important;
}

html .fi-simple-page label {
    color: #1a1a1a !important;
}

html .fi-simple-page p {
    color: #6B6B6B !important;
}

/* --------------------------------------------------------------------------
   Notifications — glass toast
   -------------------------------------------------------------------------- */
html .fi-no-notification {
    background: rgba(255, 255, 255, 0.9) !important;
    backdrop-filter: blur(16px) !important;
    -webkit-backdrop-filter: blur(16px) !important;
    border: 1px solid rgba(0, 0, 0, 0.06) !important;
    border-radius: 0.75rem !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1) !important;
}

/* --------------------------------------------------------------------------
   Tabs
   -------------------------------------------------------------------------- */
html .fi-tabs {
    background: rgba(255, 255, 255, 0.5) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    border: 1px solid rgba(0, 0, 0, 0.04) !important;
    border-radius: 0.75rem !important;
    padding: 0.25rem !important;
}

html .fi-tabs-tab {
    transition: all 0.2s ease;
    border-radius: 0.5rem !important;
}

html .fi-tabs-tab.fi-active {
    background: rgba(255, 59, 48, 0.08) !important;
}

/* --------------------------------------------------------------------------
   Page Header
   -------------------------------------------------------------------------- */
html .fi-header {
    animation: glassFadeIn 0.3s ease-out both;
}

html .fi-header-heading {
    color: #000000 !important;
}

/* --------------------------------------------------------------------------
   Scrollbar — brand themed
   -------------------------------------------------------------------------- */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255, 59, 48, 0.2); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255, 59, 48, 0.4); }

/* --------------------------------------------------------------------------
   Global smooth transitions
   -------------------------------------------------------------------------- */
html .fi-sidebar,
html .fi-topbar,
html .fi-topbar nav,
html .fi-section,
html .fi-ta-ctn,
html .fi-input-wrp,
html .fi-modal-window,
html .fi-dropdown-panel,
html main.fi-simple-main {
    transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}


/* ==========================================================================
   DARK MODE
   ========================================================================== */

/* Body */
html.dark body.fi-body,
html .dark body.fi-body {
    background: linear-gradient(180deg, #0c0c0c 0%, #131313 50%, #0c0c0c 100%) !important;
}

/* Grain texture overlay */
html.dark body.fi-body::after,
html .dark body.fi-body::after {
    content: "";
    position: fixed;
    inset: 0;
    opacity: 0.02;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 0;
}

/* Sidebar — dark glass-panel */
html.dark .fi-sidebar,
html.dark aside.fi-sidebar,
html .dark .fi-sidebar {
    background: rgba(20, 20, 20, 0.88) !important;
    backdrop-filter: blur(24px) !important;
    -webkit-backdrop-filter: blur(24px) !important;
    border-right-color: rgba(255, 255, 255, 0.06) !important;
    box-shadow: inset -1px 0 0 rgba(255, 255, 255, 0.04) !important;
}

html.dark .fi-sidebar-header,
html .dark .fi-sidebar-header {
    background: transparent !important;
    border-bottom-color: rgba(255, 255, 255, 0.04);
}

html.dark .fi-sidebar-item-button:hover,
html .dark .fi-sidebar-item-button:hover {
    background: rgba(255, 255, 255, 0.06) !important;
}

html.dark .fi-sidebar-item.fi-active .fi-sidebar-item-button,
html .dark .fi-sidebar-item.fi-active .fi-sidebar-item-button {
    background: rgba(255, 59, 48, 0.12) !important;
    box-shadow: inset 0 0 0 1px rgba(255, 59, 48, 0.18);
}

html.dark .fi-sidebar-item.fi-active .fi-sidebar-item-button::after,
html .dark .fi-sidebar-item.fi-active .fi-sidebar-item-button::after {
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.04), transparent);
    background-size: 200% 100%;
}

html.dark .fi-sidebar-group-label,
html .dark .fi-sidebar-group-label {
    color: rgba(255, 255, 255, 0.3) !important;
}

html.dark .fi-sidebar-close-overlay,
html .dark .fi-sidebar-close-overlay {
    background: rgba(0, 0, 0, 0.5) !important;
}

/* Topbar — dark glass-navbar */
html.dark .fi-topbar,
html.dark .fi-topbar nav,
html.dark .fi-topbar > nav,
html .dark .fi-topbar,
html .dark .fi-topbar nav,
html .dark .fi-topbar > nav {
    background: rgba(18, 18, 18, 0.82) !important;
    backdrop-filter: blur(20px) saturate(150%) !important;
    -webkit-backdrop-filter: blur(20px) saturate(150%) !important;
    border-bottom-color: rgba(255, 255, 255, 0.06) !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3) !important;
}

/* Stat cards — dark glass */
html.dark .fi-wi-stats-overview-stat,
html .dark .fi-wi-stats-overview-stat {
    background: rgba(255, 255, 255, 0.05) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 4px 24px rgba(0, 0, 0, 0.2) !important;
}

html.dark .fi-wi-stats-overview-stat:hover,
html .dark .fi-wi-stats-overview-stat:hover {
    background: rgba(255, 255, 255, 0.08) !important;
    border-color: rgba(255, 59, 48, 0.2) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 8px 32px rgba(0, 0, 0, 0.3) !important;
}

html.dark .fi-wi-stats-overview-stat-label,
html .dark .fi-wi-stats-overview-stat-label {
    color: rgba(255, 255, 255, 0.5) !important;
}

html.dark .fi-wi-stats-overview-stat-value,
html .dark .fi-wi-stats-overview-stat-value {
    color: #ffffff !important;
}

html.dark .fi-wi-stats-overview-stat-description,
html .dark .fi-wi-stats-overview-stat-description {
    color: rgba(255, 255, 255, 0.4) !important;
}

/* Charts / Widgets — dark glass */
html.dark .fi-wi-chart,
html .dark .fi-wi-chart {
    background: rgba(255, 255, 255, 0.04) !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03), 0 4px 24px rgba(0, 0, 0, 0.2) !important;
}

/* Sections — dark glass */
html.dark .fi-section,
html .dark .fi-section {
    background: rgba(255, 255, 255, 0.04) !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03), 0 4px 24px rgba(0, 0, 0, 0.2) !important;
}

/* Tables — dark glass */
html.dark .fi-ta-ctn,
html .dark .fi-ta-ctn {
    background: rgba(255, 255, 255, 0.04) !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03), 0 4px 24px rgba(0, 0, 0, 0.2) !important;
}

html.dark .fi-ta-row,
html .dark .fi-ta-row {
    border-bottom-color: rgba(255, 255, 255, 0.04) !important;
}

html.dark .fi-ta-row:hover,
html .dark .fi-ta-row:hover {
    background: rgba(255, 255, 255, 0.04) !important;
}

html.dark .fi-ta-header-cell,
html .dark .fi-ta-header-cell {
    color: rgba(255, 255, 255, 0.4) !important;
}

/* Forms — dark glass-input */
html.dark .fi-input-wrp,
html .dark .fi-input-wrp {
    background: rgba(255, 255, 255, 0.06) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
}

html.dark .fi-input-wrp:focus-within,
html .dark .fi-input-wrp:focus-within {
    background: rgba(255, 255, 255, 0.09) !important;
    border-color: rgba(255, 59, 48, 0.5) !important;
    box-shadow: 0 0 0 3px rgba(255, 59, 48, 0.12) !important;
}

html.dark .fi-input-wrp input,
html.dark .fi-input-wrp textarea,
html.dark .fi-input-wrp select,
html.dark .fi-input input,
html.dark .fi-input textarea,
html.dark .fi-input select,
html .dark .fi-input-wrp input,
html .dark .fi-input-wrp textarea,
html .dark .fi-input-wrp select {
    color: #ffffff !important;
}

html.dark .fi-input-wrp input::placeholder,
html.dark .fi-input-wrp textarea::placeholder,
html .dark .fi-input-wrp input::placeholder,
html .dark .fi-input-wrp textarea::placeholder {
    color: rgba(255, 255, 255, 0.35) !important;
}

/* Modals — dark glass */
html.dark .fi-modal-window,
html .dark .fi-modal-window {
    background: rgba(24, 24, 24, 0.97) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5) !important;
}

html.dark .fi-modal-slide-over-window,
html .dark .fi-modal-slide-over-window {
    background: rgba(20, 20, 20, 0.98) !important;
    border-left-color: rgba(255, 255, 255, 0.08) !important;
    box-shadow: -8px 0 40px rgba(0, 0, 0, 0.4) !important;
}

html.dark .fi-modal-close-overlay,
html .dark .fi-modal-close-overlay {
    background: rgba(0, 0, 0, 0.55) !important;
}

html.dark .fi-modal-header,
html .dark .fi-modal-header {
    border-bottom-color: rgba(255, 255, 255, 0.06) !important;
}

html.dark .fi-modal-footer,
html .dark .fi-modal-footer {
    border-top-color: rgba(255, 255, 255, 0.06) !important;
}

/* Dropdowns — dark glass */
html.dark .fi-dropdown-panel,
html .dark .fi-dropdown-panel {
    background: rgba(24, 24, 24, 0.97) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4) !important;
}

html.dark .fi-dropdown-list-item:hover,
html .dark .fi-dropdown-list-item:hover {
    background: rgba(255, 255, 255, 0.06) !important;
}

/* Login — dark glass card (visible & readable) */
html.dark .fi-simple-page .fi-simple-main,
html.dark main.fi-simple-main,
html .dark .fi-simple-page .fi-simple-main,
html .dark main.fi-simple-main {
    background: rgba(26, 26, 26, 0.85) !important;
    backdrop-filter: blur(32px) !important;
    -webkit-backdrop-filter: blur(32px) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
    box-shadow:
        0 25px 60px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.06) !important;
}

html.dark .fi-simple-header-heading,
html .dark .fi-simple-header-heading {
    color: #ffffff !important;
}

html.dark .fi-simple-header-subheading,
html .dark .fi-simple-header-subheading {
    color: rgba(255, 255, 255, 0.5) !important;
}

html.dark .fi-simple-page label,
html .dark .fi-simple-page label {
    color: rgba(255, 255, 255, 0.85) !important;
}

html.dark .fi-simple-page p,
html .dark .fi-simple-page p {
    color: rgba(255, 255, 255, 0.5) !important;
}

/* Page header — dark */
html.dark .fi-header-heading,
html .dark .fi-header-heading {
    color: #ffffff !important;
}

/* Notifications — dark */
html.dark .fi-no-notification,
html .dark .fi-no-notification {
    background: rgba(24, 24, 24, 0.95) !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
}

/* Tabs — dark */
html.dark .fi-tabs,
html .dark .fi-tabs {
    background: rgba(255, 255, 255, 0.04) !important;
    border-color: rgba(255, 255, 255, 0.06) !important;
}

/* Scrollbar — dark */
html.dark ::-webkit-scrollbar-thumb,
html .dark ::-webkit-scrollbar-thumb {
    background: rgba(255, 59, 48, 0.25);
}
html.dark ::-webkit-scrollbar-thumb:hover,
html .dark ::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 59, 48, 0.45);
}
