:root {
    --clr-main: #4f46e5;
    --clr-secondary: #0f172a;
    --clr-accent: #06b6d4;
    --clr-bg-dark: #020617; /* Very dark slate */
    --clr-bg-card: #0f172a; /* Slate 900 */
    --gradient-bg: linear-gradient(135deg, #4f46e5 0%, #06b6d4 100%);
    --separate-bg: #0f172a; /* Used in sections */
    --default-bg: #020617;
    --font-heading: 'Inter', sans-serif;
    --font-body: 'Inter', sans-serif;
}

body {
    background-color: var(--clr-bg-dark);
    color: #e2e8f0; /* Slate 200 */
    font-family: var(--font-body);
}

/* Glassmorphism & Cards */
.d-card, .site-card, .account-wrapper, .modal-content, .card {
    background: rgba(15, 23, 42, 0.7) !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
    border-radius: 16px;
}

/* Text Colors */
h1, h2, h3, h4, h5, h6, .card-header {
    color: #ffffff;
    font-family: var(--font-heading);
    font-weight: 600;
}

p, .text-muted {
    color: #94a3b8 !important; /* Slate 400 */
}

.sp_site_title {
    background: var(--gradient-bg);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
}

/* Buttons */
.btn, .main-btn, .sp_btn_primary, .btn-primary {
    background: var(--gradient-bg) !important;
    border: none;
    color: #fff;
    border-radius: 8px;
    font-weight: 600;
    padding: 10px 24px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn:hover, .main-btn:hover, .sp_btn_primary:hover {
    box-shadow: 0 0 20px rgba(79, 70, 229, 0.6);
    transform: translateY(-2px);
    color: #fff;
}

.btn-secondary {
    background: #334155 !important;
    border: 1px solid rgba(255,255,255,0.1);
    color: #e2e8f0;
}

/* Inputs */
.form-control, .selectric {
    background: rgba(2, 6, 23, 0.6) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: #fff !important;
    border-radius: 8px;
    padding: 12px;
}

.form-control:focus {
    background: rgba(2, 6, 23, 0.8) !important;
    border-color: var(--clr-main) !important;
    box-shadow: 0 0 0 2px rgba(79, 70, 229, 0.2);
}

/* Navbar/Sidebar */
.user-sidebar, .header-bottom {
    background: rgba(15, 23, 42, 0.95) !important;
    backdrop-filter: blur(10px);
    border-right: 1px solid rgba(255,255,255,0.05);
}

.sidebar-menu li a {
    color: #cbd5e1;
    border-radius: 8px;
    margin: 4px 10px;
}

.sidebar-menu li a:hover, .sidebar-menu li a.active {
    background: var(--gradient-bg);
    color: #fff;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

/* Dashboard Widgets */
.dashboard-widget {
    background: rgba(30, 41, 59, 0.6);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid rgba(255,255,255,0.05);
}

/* Tables */
.table th {
    background: transparent !important;
    color: #94a3b8;
    font-weight: 600;
    border-bottom: 1px solid rgba(255,255,255,0.1) !important;
}

.table td {
    color: #e2e8f0;
    border-bottom: 1px solid rgba(255,255,255,0.05) !important;
}

/* Modals */
.modal-header, .modal-footer {
    border-color: rgba(255,255,255,0.1);
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #020617;
}
::-webkit-scrollbar-thumb {
    background: #334155;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #475569;
}

/* Utilities */
.text-gradient {
    background: var(--gradient-bg);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.glass-header {
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
