/* =======================================================
   BAGIAN 1: ORIGINAL STYLE (UNTUK INDEX.HTML)
   JANGAN DIHAPUS - INI BUAT LANDING PAGE
   ======================================================= */

/* style.css - Cleaned for v4.8 */



/* Animasi untuk teks berjalan */
@keyframes marquee {
    0% {
        transform: translateX(100%);
    }

    100% {
        transform: translateX(-150%);
    }
}

.marquee {
    animation: marquee 25s linear infinite;
}

@keyframes marquee-slow {
    0% {
        transform: translateX(100%);
    }

    100% {
        transform: translateX(-150%);
    }
}

.marquee-slow {
    animation: marquee-slow 35s linear infinite;
}

/* Animasi untuk fade in elemen */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeIn 0.5s ease-out forwards;
}

/* Utility class untuk menyembunyikan elemen */
.hidden {
    display: none;
}



/* Transisi untuk jendela chatbot */
#chatbot-window {
    transition: opacity 0.3s ease, transform 0.3s ease;
    transform: scale(0.95);
    opacity: 0;
    pointer-events: none;
}

#chatbot-window:not(.hidden) {
    transform: scale(1);
    opacity: 1;
    pointer-events: auto;
}

/* Efek hover pada tombol chat */
#chat-toggle-btn {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    transition: transform 0.2s ease, background-color 0.2s ease;
}

#chat-toggle-btn:hover {
    transform: scale(1.05);
}

/* Styling pesan AI di Dark Mode */
.dark .flex-justify-start>div {
    border: 1px solid #4a5568;
}

/* Transisi untuk background hero */
#hero {
    transition: background-image 1s ease-in-out, background-color 0.5s ease;
}


/* =======================================================
   BAGIAN 2: PINDAHAN DARI CEK-KARTU.HTML (STUDENT PORTAL)
   MULAI DARI SINI KE BAWAH ADALAH YANG BARU
   ======================================================= */

/* === 1. BASE STYLES UTAMA === */
body {
    background-color: #0f172a;
    overflow-x: hidden;
}

.custom-scrollbar::-webkit-scrollbar {
    width: 0px;
    background: transparent;
}

.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.dashboard-container {
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
}

/* Hilangkan spinner input number */
input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    appearance: none;
    margin: 0;
}

input[type=number] {
    -moz-appearance: textfield;
    appearance: textfield;
}

/* === 2. ANIMASI TAMBAHAN (SPRING UP) === */
@keyframes springUp {
    0% {
        transform: scale(0.7) translateY(50px);
        opacity: 0;
    }

    70% {
        transform: scale(1.05) translateY(-10px);
        opacity: 1;
    }

    100% {
        transform: scale(1) translateY(0);
    }
}

.animate-spring-up {
    animation: springUp 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

/* === 3. GLASS CARD ENGINE === */
.glass-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
    border-radius: 24px;
    overflow: hidden;
    position: relative;
    transform-origin: top left;
    will-change: transform, width, height, top, left;
    backface-visibility: hidden;
    transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
}

.card-content-hidden {
    transition: opacity 0.3s ease-out, transform 0.3s ease-out;
    opacity: 0;
    transform: translateY(20px) scale(0.95);
    pointer-events: none;
    will-change: opacity, transform;
    overflow-y: auto;
    /* Aktifkan scroll vertikal jika konten kepanjangan */
    max-height: 100%;
    /* Pastikan tidak melebihi tinggi kartu */
    -ms-overflow-style: none;
    /* IE and Edge */
    scrollbar-width: none;
    /* Firefox */
}

/* Chrome, Safari, Opera */
.card-content-hidden::-webkit-scrollbar {
    display: none;
}

.glass-card.active .card-content-hidden {
    opacity: 1;
    transform: translateY(0) scale(1);
    transition-delay: 0.15s;
    pointer-events: auto;
}

.glass-card.active .card-preview {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
    display: none !important;
}

/* Hide other cards when one is active */
#card-stack.has-active .glass-card:not(.active) {
    opacity: 0;
    transform: scale(0.9);
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* === 4. LIGHT MODE SYSTEM (VENOM DAYLIGHT) === */
body.light-mode {
    background-color: #f1f5f9;
    color: #1e293b;
}

body.light-mode .ios-bg {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    opacity: 1;
}

body.light-mode .animate-blob {
    mix-blend-mode: multiply;
    filter: blur(80px);
    opacity: 0.6;
}

body.light-mode .glass-card {
    background: rgba(255, 255, 255, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

/* Hover Effects Light Mode */
body.light-mode #card-uti-id:hover {
    background: rgba(16, 185, 129, 0.1);
    border-color: #10b981;
}

body.light-mode #card-uti-play:hover {
    background: rgba(139, 92, 246, 0.1);
    border-color: #8b5cf6;
}

body.light-mode #card-uti-pass:hover {
    background: rgba(245, 158, 11, 0.1);
    border-color: #f59e0b;
}

/* Text Colors Light Mode */
body.light-mode #dash-header h2,
body.light-mode .glass-card h3 {
    color: #0f172a;
}

body.light-mode #dash-header p,
body.light-mode .glass-card p {
    color: #64748b;
}

body.light-mode #card-uti-id i {
    color: #059669;
}

body.light-mode #card-uti-play i {
    color: #7c3aed;
}

body.light-mode #card-uti-pass i {
    color: #d97706;
}

body.light-mode .card-content-hidden h2 {
    color: #0f172a;
}

body.light-mode .card-content-hidden p {
    color: #475569;
}

body.light-mode .card-content-hidden .text-white {
    color: #1e293b !important;
}

body.light-mode .card-content-hidden .text-white\/50 {
    color: #94a3b8 !important;
}

/* Gameplay & UI Fixes Light Mode */
body.light-mode #quiz-gameplay {
    background-color: #f8fafc;
}

body.light-mode .question-card,
body.light-mode .option-card {
    background: #ffffff;
    border-color: #e2e8f0;
    color: #1e293b;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

body.light-mode .option-card:hover {
    background: #f1f5f9;
    border-color: #8b5cf6;
}

body.light-mode #q-text {
    color: #1e293b;
    font-weight: 800;
}

body.light-mode #card-uti-pass .bg-black\/30 {
    background-color: #ffffff !important;
    border-color: #cbd5e1 !important;
}

body.light-mode #card-uti-pass .bg-white\/5 {
    background-color: #f1f5f9 !important;
    border-color: #e2e8f0 !important;
}

body.light-mode #card-uti-pass #exam-user,
body.light-mode #card-uti-pass #exam-pass {
    color: #1e293b !important;
    font-weight: 800;
}

body.light-mode #card-uti-pass label {
    color: #64748b !important;
}

body.light-mode #login-view {
    background: #f1f5f9 !important;
}

body.light-mode #login-view .max-w-sm {
    background-color: rgba(255, 255, 255, 0.85) !important;
    border-color: #e2e8f0 !important;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1) !important;
}

body.light-mode #login-view h1 {
    color: #0f172a !important;
}

body.light-mode #login-view p {
    color: #64748b !important;
}

body.light-mode input,
body.light-mode select,
body.light-mode textarea {
    background-color: #ffffff !important;
    color: #1e293b !important;
    border-color: #cbd5e1 !important;
}

body.light-mode input::placeholder {
    color: #94a3b8 !important;
}

body.light-mode #upload-modal>div,
body.light-mode #pass-modal>div,
body.light-mode #utiplay-modal {
    background-color: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
}

body.light-mode #upload-modal h3,
body.light-mode #pass-modal h3,
body.light-mode #utiplay-modal h3 {
    color: #1e293b !important;
}

body.light-mode #utiplay-modal>div.border-b {
    background-color: rgba(255, 255, 255, 0.95) !important;
    border-bottom-color: #e2e8f0 !important;
}

body.light-mode #quiz-lobby .text-white {
    color: #1e293b !important;
}

body.light-mode #quiz-lobby .text-white\/50 {
    color: #64748b !important;
}

body.light-mode #quiz-lobby .bg-gradient-to-br i {
    color: #ffffff !important;
}

body.light-mode .card-preview i,
body.light-mode .card-preview svg {
    color: #94a3b8 !important;
}

body.light-mode .card-preview .w-12 i {
    color: inherit !important;
}

body.light-mode #card-uti-id button {
    background-color: rgba(0, 0, 0, 0.05) !important;
    border: 1px solid #e2e8f0 !important;
}

body.light-mode #card-uti-id button span {
    color: #334155 !important;
}

body.light-mode #card-uti-play .rounded-full.bg-violet-500\/20 {
    background-color: #f3e8ff !important;
    border-color: #d8b4fe !important;
    color: #7e22ce !important;
}

body.light-mode .glass-card button.absolute.top-4.right-4 {
    background-color: rgba(0, 0, 0, 0.1) !important;
    color: #475569 !important;
}

/* Light Mode Hover untuk Kartu UtiClass (Biru) */
body.light-mode #card-uti-class:hover {
    background: rgba(6, 182, 212, 0.1);
    /* Cyan-500 low opacity */
    border-color: #06b6d4;
}

body.light-mode #card-uti-class i {
    color: #0891b2;
    /* Cyan-600 */
}

body.light-mode #card-uti-class .bg-cyan-500\/20 {
    background-color: #cffafe !important;
    /* Cyan-100 */
    border-color: #a5f3fc !important;
    /* Cyan-200 */
}

/* Sortable Fallback */
.sortable-fallback {
    z-index: 200001 !important;
    pointer-events: none;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

/* === 5. INPUT & SELECT SYSTEM === */
.creator-input {
    background-color: #1e293b !important;
    color: #ffffff !important;
    border: 1px solid #334155 !important;
    transition: border-color 0.2s, box-shadow 0.2s !important;
}

.creator-input:focus {
    border-color: #7c3aed !important;
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.2) !important;
    outline: none;
}

select.creator-input {
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 0.5rem center;
    background-repeat: no-repeat;
    background-size: 1.5em 1.5em;
    padding-right: 2.5rem;
}

option,
.creator-input option {
    background-color: #1e293b !important;
    color: white !important;
    padding: 10px;
}

body.light-mode .creator-input {
    background-color: #ffffff !important;
    color: #0f172a !important;
    border: 1px solid #cbd5e1 !important;
}

body.light-mode select.creator-input {
    color: #0f172a !important;
}

body.light-mode option {
    background-color: #ffffff !important;
    color: #0f172a !important;
}

/* === 6. GOOGLE BUTTON THEME === */
#btn-google-login {
    background-color: rgba(255, 255, 255, 0.05);
    color: #ffffff;
    border-color: transparent;
    box-shadow: 0 10px 20px -5px rgba(255, 255, 255, 0.1);
}

#btn-google-login:hover {
    background-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 25px -5px rgba(255, 255, 255, 0.2);
}

body.light-mode #btn-google-login {
    background-color: #ffffff !important;
    color: #475569 !important;
    border: 1px solid #cbd5e1 !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05) !important;
}

body.light-mode #btn-google-login:hover {
    border-color: #7c3aed !important;
    color: #7c3aed !important;
    background-color: #fcfaff !important;
}

body.light-mode .divider-line {
    border-color: #e2e8f0 !important;
}

/* === 7. iOS OPTIMIZATION === */
.glass-card,
.game-card,
.option-card,
.match-card {
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    will-change: transform;
}

body.is-ios-device .glass-card,
body.is-ios-device .glass-effect,
body.is-ios-device #utiplay-modal,
body.is-ios-device .modal-content,
body.is-ios-device #quiz-gameplay {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    box-shadow: none !important;
    transition: none !important;
}

body.is-ios-device .animate-blob {
    display: none !important;
}

body.is-ios-device .animate-float {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    animation: none !important;
    transform: none !important;
    margin: 0 auto !important;
}

body.is-ios-device .animate-float i,
body.is-ios-device .animate-float svg {
    margin: 0 !important;
    transform: none !important;
}

body.is-ios-device:not(.light-mode) .glass-card,
body.is-ios-device:not(.light-mode) #utiplay-modal,
body.is-ios-device:not(.light-mode) .modal-content {
    background-color: #0f172a !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
}

body.is-ios-device.light-mode .glass-card,
body.is-ios-device.light-mode #utiplay-modal,
body.is-ios-device.light-mode .modal-content {
    background-color: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    color: #1e293b !important;
}

body.is-ios-device.light-mode #quiz-gameplay {
    background-color: #f8fafc !important;
}

body.is-ios-device.light-mode .option-card {
    background-color: #ffffff !important;
    border-color: #cbd5e1 !important;
}

/* === 8. ANTI STICKY HOVER (MOBILE) === */
@media (hover: none) {
    .option-card:not(:disabled):hover {
        background-color: #1f2937 !important;
        border-color: #374151 !important;
        transform: none !important;
    }

    body.light-mode .option-card:not(:disabled):hover {
        background-color: #ffffff !important;
        border-color: #e2e8f0 !important;
    }

    .option-card:not(:disabled):hover span:first-child {
        background-color: #374151 !important;
        color: #d1d5db !important;
    }

    body.light-mode .option-card:not(:disabled):hover span:first-child {
        background-color: #f3f4f6 !important;
        color: #6b7280 !important;
    }

    .option-card:not(:disabled):active {
        background-color: rgba(124, 58, 237, 0.1) !important;
        border-color: #8b5cf6 !important;
        transform: scale(0.98) !important;
    }
}

/* =======================================================
   BAGIAN 3: TAMBAHAN KHUSUS ADMIN (PINDAHAN DARI ADMIN-APP.HTML)
   Supaya Admin Panel punya baju sendiri tapi satu lemari
   ======================================================= */

/* 1. Panel Kaca Khusus Admin (Lebih Gelap & Serius) */
.glass-panel {
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
}

/* 2. Efek Baris Tabel Melayang */
.table-row-card {
    background: rgba(255, 255, 255, 0.03);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.table-row-card:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px) scale(1.005);
    box-shadow: 0 10px 20px -5px rgba(0, 0, 0, 0.3);
    z-index: 10;
}

.table-row-card td:first-child {
    border-top-left-radius: 12px;
    border-bottom-left-radius: 12px;
}

.table-row-card td:last-child {
    border-top-right-radius: 12px;
    border-bottom-right-radius: 12px;
}

/* 3. Override Light Mode Khusus Admin (Biar Input Terbaca) */
body.light-mode .glass-panel {
    background: rgba(255, 255, 255, 0.85) !important;
    border: 1px solid rgba(255, 255, 255, 0.9) !important;
    box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.08) !important;
}

body.light-mode .table-row-card {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02) !important;
}

body.light-mode .table-row-card:hover {
    background: #f8fafc !important;
    border-color: #cbd5e1 !important;
}

/* 4. Paksa Warna Input di Admin Light Mode (PENTING!) */
body.light-mode input,
body.light-mode select,
body.light-mode textarea {
    background: #ffffff !important;
    border-color: #e2e8f0 !important;
    color: #1e293b !important;
}

/* 5. Aksen Checkbox */
.checkbox-accent:checked {
    background-color: #10b981;
    border-color: #10b981;
}

/* =======================================================
   BAGIAN 4: AI GAME & ANIMATIONS (PINDAHAN DARI JS)
   Khusus untuk animasi fitur AI Speaking & Listening
   ======================================================= */

/* 1. Efek Getar (Untuk Jawaban Salah) */
@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-5px);
    }

    75% {
        transform: translateX(5px);
    }
}

.animate-shake {
    animation: shake 0.3s ease-in-out;
}

/* 2. Efek Bounce Lambat (Untuk Icon Shadowing) */
.animate-bounce-slow {
    animation: bounce 3s infinite;
    /* Lebih lambat dari default tailwind */
}

/* 3. Animasi Bar Waktu Mundur (Untuk Level 3 Speaking) */
@keyframes widthDown {
    from {
        width: 100%;
    }

    to {
        width: 0%;
    }
}

/* Tambahan: Pastikan keyframe bounce tersedia (jika tailwind tidak load sempurna) */
@keyframes bounce {

    0%,
    100% {
        transform: translateY(-25%);
        animation-timing-function: cubic-bezier(0.8, 0, 1, 1);
    }

    50% {
        transform: translateY(0);
        animation-timing-function: cubic-bezier(0, 0, 0.2, 1);
    }
}

/* =======================================================
   BAGIAN 5: ANIMASI KARTU MISI AI (THE WOW FACTOR)
   Paste di paling bawah style.css
   ======================================================= */

/* 1. Definisi Gerakan Masuk (Slide Up + Elastic) */
@keyframes cardEntrance {
    0% {
        opacity: 0;
        transform: translateY(40px) scale(0.9);
        filter: blur(5px);
    }

    60% {
        opacity: 1;
        transform: translateY(-5px) scale(1.02);
        /* Sedikit overshoot biar membal */
        filter: blur(0px);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Update di Bagian 5 style.css */
.animate-mission-card {
    opacity: 0;
    /* GANTI 'forwards' JADI 'both' */
    animation: cardEntrance 0.6s cubic-bezier(0.22, 1, 0.36, 1) both;

    will-change: transform, opacity;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    transform: translateZ(0);
}

/* 3. Bonus: Efek Hover "Scanning" (Biar makin Cyberpunk) */
.scan-line-effect {
    position: relative;
    overflow: hidden;
}

.scan-line-effect::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(to bottom,
            transparent,
            rgba(6, 182, 212, 0.1),
            /* Cyan scanline */
            transparent);
    transform: rotate(45deg) translateY(-100%);
    transition: transform 0.6s;
    pointer-events: none;
}

/* Penyesuaian Scan Line untuk Light Mode */
body.light-mode .scan-line-effect::after {
    background: linear-gradient(to bottom,
            transparent,
            rgba(8, 145, 178, 0.3),
            /* Cyan lebih gelap & tebal dikit */
            transparent);
}

.scan-line-effect:hover::after {
    transform: rotate(45deg) translateY(100%);
    transition: transform 1s ease-in-out;
}

/* === LITE MODE ENGINE === */

/* 1. Matikan Glassmorphism (Penyebab Lag Utama) */
body.lite-mode .glass-card,
body.lite-mode .glass-panel,
body.lite-mode #login-view .max-w-sm {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    background: rgba(15, 23, 42, 0.95) !important;
    /* Ganti kaca jadi warna solid gelap */
    box-shadow: none !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

/* === LITE MODE GLOBAL OPTIMIZATIONS === */
body.lite-mode *,
body.lite-mode *::before,
body.lite-mode *::after {
    box-shadow: none !important;
    text-shadow: none !important;
}

/* Matikan animasi berat tapi biarkan transisi penting (seperti timer) */
body.lite-mode .animate-bounce,
body.lite-mode .animate-pulse,
body.lite-mode .animate-spin,
body.lite-mode .animate-float,
body.lite-mode .animate-ping {
    animation: none !important;
    transition: none !important;
}

/* 2. Solusi Ikon Miring: Sembunyikan Blob Bergerak, Ganti Background Statis */
body.lite-mode .animate-blob {
    display: none !important;
    /* Hapus beban render total */
}

/* 3. Sebagai gantinya, kasih background gradasi halus statis (Ringan Banget) */
body.lite-mode .ios-bg {
    background: linear-gradient(to bottom, #0f172a, #1e1b4b) !important;
}

/* 4. Matikan animasi float (ikon melayang) & Reset posisi ke tengah */
body.lite-mode .animate-float,
body.lite-mode .animate-bounce-slow {
    animation: none !important;
    transform: none !important;
    /* PENTING: Ini yang bikin dia balik tegak lurus */
}

/* 5. Matikan Efek Scan-Line & Twinkle (Background Bersih) */
body.lite-mode .scan-line-effect::after,
body.lite-mode .twinkle,
body.lite-mode .marquee,
body.lite-mode .marquee-slow {
    display: none !important;
    animation: none !important;
}

/* 6. Matikan Transisi Kartu (Instant Snap) */
body.lite-mode .glass-card,
body.lite-mode .table-row-card {
    transition: none !important;
}

/* 7. Matikan Animasi Entrance (Muncul Langsung) */
body.lite-mode .animate-mission-card,
body.lite-mode .animate-spring-up {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
}

/* 8. SAFEGUARD Z-INDEX (Untuk Game) */
/* Pastikan modal game tetap di atas segalanya meskipun Lite Mode */
body.lite-mode #utiplay-modal,
body.lite-mode .modal-content {
    z-index: 9999 !important;
    /* Paksa paling atas */
    transform: translateZ(0);
    /* Trigger GPU layer sendiri biar gak ketutup */
}

/* 9. LITE MODE + LIGHT MODE COMPATIBILITY (FIX) */
body.lite-mode.light-mode #login-view .max-w-sm,
body.lite-mode.light-mode .glass-card,
body.lite-mode.light-mode .glass-panel {
    background: #ffffff !important;
    border-color: #cbd5e1 !important;
    color: #1e293b !important;
}

body.lite-mode.light-mode .ios-bg {
    background: linear-gradient(to bottom, #f1f5f9, #e2e8f0) !important;
}

body.lite-mode.light-mode #login-view {
    background: #f1f5f9 !important;
}

/* =======================================================
   BAGIAN 6: QUILL EDITOR DARK MODE SUPPORT
   Fixes for rich text editor visibility in dark theme
   ======================================================= */

/* 1. Base Text Color */
.dark .ql-editor {
    color: #e2e8f0;
}

.dark .ql-editor.ql-blank::before {
    color: #64748b;
    font-style: normal;
}

/* 2. Toolbar Icons */
.dark .ql-toolbar .ql-stroke {
    stroke: #94a3b8;
}

.dark .ql-toolbar .ql-fill {
    fill: #94a3b8;
}

.dark .ql-toolbar .ql-picker {
    color: #94a3b8;
}

/* Hover & Active States */
.dark .ql-toolbar button:hover .ql-stroke,
.dark .ql-toolbar button.ql-active .ql-stroke,
.dark .ql-toolbar .ql-picker-label:hover .ql-stroke,
.dark .ql-toolbar .ql-picker-label.ql-active .ql-stroke {
    stroke: #38bdf8;
    /* sky-400 */
}

.dark .ql-toolbar button:hover .ql-fill,
.dark .ql-toolbar button.ql-active .ql-fill,
.dark .ql-toolbar .ql-picker-label:hover .ql-fill,
.dark .ql-toolbar .ql-picker-label.ql-active .ql-fill {
    fill: #38bdf8;
}

.dark .ql-toolbar .ql-picker-label:hover,
.dark .ql-toolbar .ql-picker-label.ql-active {
    color: #38bdf8;
}

/* 3. Picker Options (Dropdowns) */
.dark .ql-picker-options {
    background-color: #1e293b !important;
    border-color: #334155 !important;
}

.dark .ql-picker-item {
    color: #94a3b8;
}

.dark .ql-picker-item:hover,
.dark .ql-picker-item.ql-selected {
    color: #38bdf8;
}

/* 4. Toolbar Border */
.dark .ql-toolbar.ql-snow {
    border-color: rgba(255, 255, 255, 0.1);
}

.dark .ql-container.ql-snow {
    border-color: rgba(255, 255, 255, 0.1);
}

/* 5. Tooltip */
.dark .ql-tooltip {
    background-color: #0f172a;
    border: 1px solid #334155;
    color: #f1f5f9;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.5);
}

.dark .ql-tooltip input[type=text] {
    background-color: #1e293b;
    color: #f1f5f9;
    border: 1px solid #475569;
}