/* ========== DARK MODE ========== */
body.dark-mode {
  background: #121218 !important;
  color: #e0e0e0 !important;
}

/* Toggle Button */
.darkmode-toggle {
  background: none; border: none; font-size: 20px; cursor: pointer;
  color: #555; padding: 6px; border-radius: 8px; transition: all 0.3s;
  display: flex; align-items: center; justify-content: center;
}
.darkmode-toggle:hover { background: rgba(0,0,0,0.08); }
body.dark-mode .darkmode-toggle { color: #ffd54f; }
body.dark-mode .darkmode-toggle:hover { background: rgba(255,255,255,0.1); }

/* ---- Landing Page (index, login, register, syarat) ---- */
body.dark-mode .header-area { background: #1a1a24 !important; box-shadow: 0 2px 8px rgba(0,0,0,0.4) !important; }
body.dark-mode .header-area .logo h4 { color: #03a4ed; }
body.dark-mode .header-area .nav li a { color: #ccc !important; }
body.dark-mode .header-area .nav li a:hover,
body.dark-mode .header-area .nav li a.active { color: #03a4ed !important; }
body.dark-mode .main-banner { background: #121218 !important; }
body.dark-mode .main-banner .left-content h6 { color: #888 !important; }
body.dark-mode .main-banner .left-content h2 { color: #fff !important; }
body.dark-mode .main-banner .left-content p { color: #aaa !important; }
body.dark-mode .our-portfolio,
body.dark-mode .how-it-works,
body.dark-mode .testimonials,
body.dark-mode .contact-us { background: #16161e !important; }
body.dark-mode .section-heading h2 { color: #eee !important; }
body.dark-mode .section-heading h2 em { color: #03a4ed !important; }
body.dark-mode .our-portfolio .item { background: #1e1e2a !important; border-color: #2a2a3a !important; }
body.dark-mode .our-portfolio .item .showed-content { background: #1e1e2a !important; }
body.dark-mode .our-portfolio .item .showed-content h4 { color: #eee !important; }
body.dark-mode .our-portfolio .item .hidden-content { background: #252536 !important; }
body.dark-mode .our-portfolio .item .hidden-content h4,
body.dark-mode .our-portfolio .item .hidden-content p { color: #ddd !important; }
body.dark-mode .step-card { background: #1e1e2a !important; color: #ddd !important; }
body.dark-mode .step-card h5 { color: #eee !important; }
body.dark-mode .step-card p { color: #aaa !important; }
body.dark-mode .testimonial-card { background: #1e1e2a !important; }
body.dark-mode .testimonial-card p { color: #ccc !important; }
body.dark-mode .testimonial-card .author h5 { color: #eee !important; }
body.dark-mode .testimonial-card .author span { color: #888 !important; }
body.dark-mode .contact-us .section-heading h2 { color: #eee !important; }
body.dark-mode .contact-us .section-heading p { color: #aaa !important; }
body.dark-mode .contact-us input,
body.dark-mode .contact-us textarea { background: #1e1e2a !important; border-color: #333 !important; color: #ddd !important; }
body.dark-mode footer { background: #0e0e14 !important; }
body.dark-mode footer p { color: #888 !important; }
body.dark-mode .menu-trigger span,
body.dark-mode .menu-trigger span:before,
body.dark-mode .menu-trigger span:after { background: #ccc !important; }

/* ---- Auth Pages ---- */
body.dark-mode .auth-container { background: #121218 !important; }
body.dark-mode .auth-card { background: #1e1e2a !important; box-shadow: 0 8px 30px rgba(0,0,0,0.4) !important; }
body.dark-mode .auth-card h2 { color: #eee !important; }
body.dark-mode .auth-card p { color: #aaa !important; }
body.dark-mode .auth-card input { background: #16161e !important; border-color: #333 !important; color: #ddd !important; }
body.dark-mode .auth-card label { color: #bbb !important; }
body.dark-mode .auth-card .divider { color: #666 !important; }
body.dark-mode .auth-card .divider::before,
body.dark-mode .auth-card .divider::after { background: #333 !important; }

/* ---- Dashboard ---- */
body.dark-mode .dash-topbar { background: #1a1a24 !important; box-shadow: 0 2px 8px rgba(0,0,0,0.4) !important; }
body.dark-mode .topbar-user span { color: #ddd !important; }
body.dark-mode .dash-sidebar { background: #16161e !important; border-right-color: #2a2a3a !important; }
body.dark-mode .sidebar-profile { border-bottom-color: #2a2a3a !important; }
body.dark-mode .sidebar-profile h5 { color: #eee !important; }
body.dark-mode .sidebar-profile p { color: #888 !important; }
body.dark-mode .menu-group { color: #666 !important; }
body.dark-mode .menu-item { color: #aaa !important; }
body.dark-mode .menu-item:hover { background: #1e2a3a !important; color: #03a4ed !important; }
body.dark-mode .menu-item.active { background: #1a2940 !important; color: #03a4ed !important; }
body.dark-mode .sidebar-overlay { background: rgba(0,0,0,0.6) !important; }

body.dark-mode .welcome-bar { background: linear-gradient(135deg, #0277bd, #01579b) !important; }
body.dark-mode .stat-card { background: #1e1e2a !important; box-shadow: 0 2px 12px rgba(0,0,0,0.3) !important; }
body.dark-mode .stat-card:hover { box-shadow: 0 6px 20px rgba(0,0,0,0.5) !important; }
body.dark-mode .stat-info h3 { color: #eee !important; }
body.dark-mode .stat-info p { color: #888 !important; }

body.dark-mode .chart-card { background: #1e1e2a !important; box-shadow: 0 2px 12px rgba(0,0,0,0.3) !important; }
body.dark-mode .chart-header h3 { color: #eee !important; }
body.dark-mode .cf-btn { background: #16161e !important; border-color: #333 !important; color: #aaa !important; }
body.dark-mode .cf-btn:hover { border-color: #03a4ed !important; color: #03a4ed !important; }
body.dark-mode .cf-btn.active { border-color: #03a4ed !important; background: #1a2940 !important; color: #03a4ed !important; }
body.dark-mode .chart-summary h4 { color: #eee !important; }
body.dark-mode .summary-item { color: #bbb !important; border-bottom-color: #2a2a3a !important; }
body.dark-mode .summary-total { background: #1a2940 !important; color: #4fc3f7 !important; }

body.dark-mode .tryout-card { background: #1e1e2a !important; box-shadow: 0 2px 12px rgba(0,0,0,0.3) !important; }
body.dark-mode .tryout-card:hover { border-color: #03a4ed !important; }
body.dark-mode .tryout-card h4 { color: #eee !important; }
body.dark-mode .tryout-card ul li { color: #aaa !important; }

body.dark-mode .history-card { background: #1e1e2a !important; box-shadow: 0 2px 12px rgba(0,0,0,0.3) !important; }
body.dark-mode .h-item { border-bottom-color: #2a2a3a !important; }
body.dark-mode .h-item:hover { background: #1a2940 !important; }
body.dark-mode .h-left h5 { color: #eee !important; }
body.dark-mode .h-meta { color: #888 !important; }
body.dark-mode .h-scores span { background: #16161e !important; color: #bbb !important; }
body.dark-mode .h-hide-btn { background: #16161e !important; border-color: #333 !important; color: #888 !important; }

body.dark-mode .section-heading { color: #eee !important; }

/* Profile Dropdown */
body.dark-mode .profile-dropdown { background: #1e1e2a !important; box-shadow: 0 8px 30px rgba(0,0,0,0.5) !important; }
body.dark-mode .pd-name { color: #eee !important; }
body.dark-mode .pd-email { color: #888 !important; }
body.dark-mode .pd-divider { background: #2a2a3a !important; }
body.dark-mode .pd-item { color: #bbb !important; }
body.dark-mode .pd-item:hover { background: #1a2940 !important; color: #03a4ed !important; }

/* Settings */
body.dark-mode .settings-card { background: #1e1e2a !important; box-shadow: 0 2px 12px rgba(0,0,0,0.3) !important; }
body.dark-mode .settings-card h3 { color: #eee !important; }
body.dark-mode .form-group label { color: #bbb !important; }
body.dark-mode .form-group input,
body.dark-mode .form-group select { background: #16161e !important; border-color: #333 !important; color: #ddd !important; }
body.dark-mode .btn-ganti-foto { background: #16161e !important; border-color: #333 !important; color: #bbb !important; }
body.dark-mode .danger-box { background: #1e1e2a !important; }
body.dark-mode .danger-box p { color: #aaa !important; }

/* ---- Tryout Exam Page ---- */
body.dark-mode .exam-topbar { background: #1a1a24 !important; }
body.dark-mode .exam-container { background: #121218 !important; }
body.dark-mode .soal-card { background: #1e1e2a !important; color: #ddd !important; }
body.dark-mode .soal-text { color: #ddd !important; }
body.dark-mode .option-item { background: #16161e !important; border-color: #333 !important; color: #ccc !important; }
body.dark-mode .option-item:hover { border-color: #03a4ed !important; background: #1a2940 !important; }
body.dark-mode .option-item.selected { border-color: #03a4ed !important; background: #1a2940 !important; }
body.dark-mode .nav-soal-btn { background: #16161e !important; border-color: #333 !important; color: #bbb !important; }
body.dark-mode .nav-soal-btn.answered { background: #1a2940 !important; border-color: #03a4ed !important; color: #03a4ed !important; }
body.dark-mode .nav-soal-btn.active { background: #03a4ed !important; color: #fff !important; }
body.dark-mode .result-card { background: #1e1e2a !important; }
body.dark-mode .result-card h3,
body.dark-mode .result-card h2 { color: #eee !important; }

/* ---- Review Page ---- */
body.dark-mode .review-container { background: #121218 !important; }
body.dark-mode .review-card { background: #1e1e2a !important; }
body.dark-mode .review-soal { background: #16161e !important; border-color: #2a2a3a !important; }
body.dark-mode .review-soal p { color: #ddd !important; }

/* ---- Leaderboard ---- */
body.dark-mode .lb-page { background: #121218 !important; }
body.dark-mode .lb-card { background: #1e1e2a !important; box-shadow: 0 2px 12px rgba(0,0,0,0.3) !important; }
body.dark-mode .lb-table th { background: #16161e !important; color: #bbb !important; }
body.dark-mode .lb-table td { color: #ccc !important; border-bottom-color: #2a2a3a !important; }
body.dark-mode .lb-table tr:hover td { background: #1a2940 !important; }
body.dark-mode .lb-tab { background: #16161e !important; border-color: #333 !important; color: #aaa !important; }
body.dark-mode .lb-tab.active { background: #1a2940 !important; border-color: #03a4ed !important; color: #03a4ed !important; }
body.dark-mode .lb-podium-name { color: #eee !important; }
body.dark-mode .lb-podium-score { color: #ccc !important; }

/* ---- Scrollbar ---- */
body.dark-mode ::-webkit-scrollbar { width: 8px; }
body.dark-mode ::-webkit-scrollbar-track { background: #16161e; }
body.dark-mode ::-webkit-scrollbar-thumb { background: #333; border-radius: 4px; }
body.dark-mode ::-webkit-scrollbar-thumb:hover { background: #444; }

/* ---- Misc ---- */
body.dark-mode .modal-content { background: #1e1e2a !important; color: #ddd !important; }
body.dark-mode .modal-header { border-bottom-color: #2a2a3a !important; }
body.dark-mode .modal-footer { border-top-color: #2a2a3a !important; }
body.dark-mode hr { border-color: #2a2a3a !important; }
body.dark-mode .alert { background: #1a2940 !important; border-color: #333 !important; color: #ddd !important; }
