/* =========================================
   DARK MODE GLOBAL SETTINGS - KMI-BALUT
========================================= */
html.dark { color-scheme: dark; }

html.dark body {
    background-color: #0f172a !important; /* slate-900 */
    color: #f8fafc !important; /* slate-50 */
}

/* Container Backgrounds */
html.dark .bg-white,
html.dark .bg-slate-50,
html.dark .bg-slate-100,
html.dark .bg-gray-50,
html.dark .bg-gray-100 {
    background-color: #1e293b !important; /* slate-800 */
    border-color: #334155 !important;
}

/* Exceptions for elements that should remain transparent */
html.dark .bg-transparent { background-color: transparent !important; }

/* Text Colors */
html.dark .text-slate-900,
html.dark .text-slate-800,
html.dark .text-gray-900,
html.dark .text-gray-800 {
    color: #f8fafc !important;
}
html.dark .text-slate-700,
html.dark .text-gray-700 {
    color: #e2e8f0 !important;
}
html.dark .text-slate-600,
html.dark .text-slate-500,
html.dark .text-gray-600,
html.dark .text-gray-500 {
    color: #cbd5e1 !important;
}

/* Soft Highlights (Adaptasi ke warna pastel transparan) */
html.dark .bg-blue-50, html.dark .bg-blue-100 { background-color: rgba(37, 99, 235, 0.15) !important; color: #93c5fd !important; }
html.dark .bg-green-50, html.dark .bg-emerald-50, html.dark .bg-emerald-100 { background-color: rgba(16, 185, 129, 0.15) !important; color: #6ee7b7 !important; }
html.dark .bg-red-50, html.dark .bg-rose-50, html.dark .bg-rose-100 { background-color: rgba(225, 29, 72, 0.15) !important; color: #fda4af !important; }
html.dark .bg-amber-50, html.dark .bg-yellow-50, html.dark .bg-amber-100 { background-color: rgba(245, 158, 11, 0.15) !important; color: #fcd34d !important; }
html.dark .bg-purple-50, html.dark .bg-purple-100 { background-color: rgba(147, 51, 234, 0.15) !important; color: #d8b4fe !important; }
html.dark .bg-pink-50, html.dark .bg-pink-100 { background-color: rgba(219, 39, 119, 0.15) !important; color: #f9a8d4 !important; }
html.dark .bg-sky-50, html.dark .bg-sky-100 { background-color: rgba(2, 132, 199, 0.15) !important; color: #7dd3fc !important; }

/* Borders */
html.dark .border-slate-100, html.dark .border-slate-200, html.dark .border-slate-300, html.dark .border-gray-100, html.dark .border-gray-200 {
    border-color: #334155 !important;
}

/* Forms */
html.dark input[type="text"], html.dark input[type="email"], html.dark textarea, html.dark select {
    background-color: #0f172a !important;
    color: #f8fafc !important;
    border-color: #334155 !important;
}
html.dark input:focus, html.dark textarea:focus { border-color: #3b82f6 !important; }

/* Cards & Glass Effects */
html.dark .glass-card, html.dark .pilar-card, html.dark .agenda-card, html.dark .news-glass-card, html.dark .news-card, html.dark .bergabung-card, html.dark .tp-card, html.dark .contact-card, html.dark .maba-glass-card, html.dark .kampus-card, html.dark .picked-card {
    background-color: rgba(30, 41, 59, 0.7) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5) !important;
}

html.dark .kampus-logo-wrapper, html.dark .timeline-item .timeline-content { background-color: #0f172a !important; }
html.dark .dropdown-menu { background-color: #1e293b !important; border: 1px solid #334155 !important; }
html.dark .dropdown-menu a { color: #cbd5e1 !important; }
html.dark .dropdown-menu a:hover { background-color: #334155 !important; color: #60a5fa !important; }

/* Header & Navbar */
html.dark .header-scrolled {
    background-color: rgba(15, 23, 42, 0.85) !important;
    border-bottom-color: rgba(255, 255, 255, 0.05) !important;
}
html.dark #mobile-menu, html.dark .mobile-dropdown div {
    background-color: #1e293b !important;
    border-color: #334155 !important;
}
html.dark #mobile-menu a, html.dark #mobile-menu button { color: #cbd5e1 !important; }
html.dark #mobile-menu a:hover, html.dark #mobile-menu button:hover { background-color: #334155 !important; color: #60a5fa !important; }

/* Footer Socials */
html.dark .social-btn {
    background-color: #1e293b !important;
    color: #cbd5e1 !important;
    border: 1px solid #334155 !important;
}
html.dark .social-btn:hover { color: #fff !important; }

/* Modals */
html.dark #adminWarningModal .bg-white, html.dark .calendar-modal__card {
    background-color: #1e293b !important;
    border: 1px solid #334155 !important;
}
html.dark #adminWarningModal p { color: #cbd5e1 !important; }
html.dark #btnCancelAdmin, html.dark #calendarCancelBtn { background-color: #334155 !important; color: #f8fafc !important; }

/* Custom Scrollbar */
html.dark ::-webkit-scrollbar-track { background: #0f172a; }
html.dark ::-webkit-scrollbar-thumb { background: #334155; }
html.dark ::-webkit-scrollbar-thumb:hover { background: #475569; }

/* =========================================
   TOGGLE BUTTON UI (Sun/Moon Switch)
========================================= */
.theme-toggle-btn {
    position: relative;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f1f5f9;
    color: #64748b;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid #e2e8f0;
    cursor: pointer;
    overflow: hidden;
}
html.dark .theme-toggle-btn { background-color: #1e293b; color: #fbbf24; border-color: #334155; }
.theme-toggle-btn:hover { transform: scale(1.1); background-color: #e2e8f0; }
html.dark .theme-toggle-btn:hover { background-color: #334155; }

.theme-toggle-btn svg {
    position: absolute;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.theme-toggle-btn .sun-icon {
    transform: translateY(30px) rotate(45deg);
    opacity: 0;
}
.theme-toggle-btn .moon-icon {
    transform: translateY(0) rotate(0);
    opacity: 1;
}
html.dark .theme-toggle-btn .sun-icon { transform: translateY(0) rotate(0); opacity: 1; }
html.dark .theme-toggle-btn .moon-icon { transform: translateY(-30px) rotate(-45deg); opacity: 0; }

/* =========================================
   HIDE GOOGLE TRANSLATE WIDGET BAR
========================================= */
.skiptranslate iframe { display: none !important; }
body { top: 0 !important; }
#goog-gt-tt { display: none !important; }
.goog-te-spinner-pos { display: none !important; }