
/* ============================================
   DARK THEME GLOBALS
   ============================================ */
body.dark-theme {
    --bg-body: #0f172a;
    --sidebar-bg: #020617;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --border-color: #334155;
    --card-bg: #1e293b;
    
    --slate-50: #1e293b;
    --slate-100: #334155;
    --slate-200: #475569;
    --slate-300: #64748b;
    --slate-400: #94a3b8;
    --slate-500: #cbd5e1;
    --slate-600: #e2e8f0;
    --slate-700: #f1f5f9;
    --slate-800: #f8fafc;
    --slate-900: #ffffff;
    
    background-color: var(--bg-body);
    color: var(--text-main);
}

body.dark-theme .card-premium,
body.dark-theme .stat-card-premium,
body.dark-theme .stat-card,
body.dark-theme .form-card,
body.dark-theme .history-card,
body.dark-theme .digital-clock,
body.dark-theme .owner-widget,
body.dark-theme .modal-content,
body.dark-theme .select-options-premium {
    background: var(--card-bg) !important;
    border-color: var(--border-color) !important;
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.5);
    color: var(--text-main);
}

body.dark-theme .table-section-title,
body.dark-theme .table-custom th,
body.dark-theme .modal-header,
body.dark-theme .type-btn {
    background: var(--slate-100) !important;
    border-color: var(--border-color) !important;
    color: var(--text-main) !important;
}

body.dark-theme h1,
body.dark-theme h2,
body.dark-theme h3,
body.dark-theme h4,
body.dark-theme h5,
body.dark-theme h6,
body.dark-theme .stat-value,
body.dark-theme .profile-name,
body.dark-theme .owner-contact-name {
    color: var(--slate-900) !important;
}

body.dark-theme .table-custom td {
    border-bottom-color: var(--border-color);
    color: var(--text-main);
}

body.dark-theme .table-custom tbody tr:hover {
    background: var(--slate-100) !important;
}

body.dark-theme .type-btn.active {
    background: var(--primary-light) !important;
    border-color: var(--primary) !important;
}

body.dark-theme select,
body.dark-theme .form-select, 
body.dark-theme .form-input-premium, 
body.dark-theme .form-control,
body.dark-theme .select-trigger-premium {
    background-color: var(--card-bg) !important;
    border-color: var(--border-color) !important;
    color: var(--text-main) !important;
}

body.dark-theme .bg-white {
    background-color: var(--card-bg) !important;
}

body.dark-theme .table-report th {
    border-bottom-color: var(--border-color);
}

body.dark-theme .table-report td {
    border-bottom-color: var(--border-color);
    color: var(--text-main);
}

body.dark-theme hr, 
body.dark-theme .text-muted {
    color: var(--text-muted) !important;
}

body.dark-theme .alert {
    background-color: var(--slate-100);
    border-color: var(--border-color);
    color: var(--text-main);
}
