/* Custom theme styles for dark mode */
.dark body {
    --bg-color: #121620; /* Deep premium space dark */
    background-color: var(--bg-color) !important;
}

.dark .fi-layout {
    background-color: var(--bg-color) !important;
}

.dark .fi-sidebar {
    background-color: #181d26 !important;
    border-right: 1px solid rgba(255, 255, 255, 0.05) !important;
}

.dark .fi-topbar {
    background-color: #181d26 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
}

.dark .fi-section, 
.dark .fi-ta-ctn, 
.dark .fi-modal-window,
.dark .fi-section-header,
.dark .fi-section-content {
    background-color: #1a202c !important;
    border-color: rgba(255, 255, 255, 0.06) !important;
}

/* Accent gradient backgrounds for primary elements */
.fi-btn-color-primary,
.fi-btn[type="submit"],
.fi-ac-btn-action {
    background: linear-gradient(90deg, #00f2fe, #d500f9) !important;
    color: #ffffff !important;
    border: none !important;
    box-shadow: 0 4px 12px rgba(0, 242, 254, 0.25) !important;
    transition: all 0.2s ease-in-out !important;
}

.fi-btn-color-primary:hover,
.fi-btn[type="submit"]:hover,
.fi-ac-btn-action:hover {
    transform: translateY(-1px) !important;
    box-shadow: 0 6px 16px rgba(0, 242, 254, 0.4) !important;
    opacity: 0.95 !important;
}

/* Sidebar active states and icons with primary brand gradient */
.fi-sidebar-item-active {
    background-color: rgba(157, 78, 221, 0.12) !important;
    border-left: 3px solid #00f2fe !important;
}

.fi-sidebar-item-active .fi-sidebar-item-label {
    color: #00f2fe !important;
}

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

/* Custom styles for tables, scrollbars, etc. */
.dark ::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
.dark ::-webkit-scrollbar-track {
    background: #121620;
}
.dark ::-webkit-scrollbar-thumb {
    background: #2d3748;
    border-radius: 4px;
}
.dark ::-webkit-scrollbar-thumb:hover {
    background: #4a5568;
}
