html.dark {
    --bg-primary: #1f2937;
    --bg-secondary: #111827;
    --bg-tertiary: #374151;
    --text-primary: #f9fafb;
    --text-secondary: #9ca3af;
    --text-muted: #6b7280;
    --border-color: #374151;
    --primary-color: #3b82f6;
    --primary-hover: #60a5fa;
    --primary-light: #1e3a8a;
    --success-color: #10b981;
    --danger-color: #ef4444;
    --warning-color: #f59e0b;
    --shadow-sm: 0 1px 2px 0 rgba(0,0,0,0.3);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.4);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.5);
}

.dark .alert-error {
    background-color: rgba(239,68,68,0.2);
    border-color: var(--danger-color);
}

.dark .alert-success {
    background-color: rgba(16,185,129,0.2);
    border-color: var(--success-color);
}

.dark .btn-secondary {
    border-color: var(--border-color);
    color: var(--text-primary);
}

.dark input,
.dark select,
.dark textarea {
    background-color: var(--bg-tertiary);
    color: var(--text-primary);
}

.dark .stat-card,
.dark .app-card,
.dark .form-card,
.dark .section-box {
    background-color: var(--bg-primary);
}

.dark .data-table tr:hover {
    background-color: var(--bg-tertiary);
}

.dark .front-header {
    background-color: var(--bg-primary);
    border-bottom-color: var(--border-color);
}

.dark .hero {
    background: linear-gradient(135deg, #1e3a8a 0%, #5b21b6 100%);
}

.dark .feature-card {
    background-color: var(--bg-primary);
    border-color: var(--border-color);
}