/* =========================================================================
   FILE: stylesheet.css (TRANSKEP Modular CSS)
   DESKRIPSI: Desain Otentik TRANSKEP (Dark Theme, Light Mode Gimmick, Glassmorphism)
   ORIGIN: Ekstrak murni dari stylesheet.html tanpa tag <style>
   ========================================================================= */

[v-cloak] {
  display: none !important;
}

/* =========================================================
   TRANSKEP: Instant Anti-FOUC Session Guard (Zero-Flicker)
   ========================================================= */
html.app-authenticated #login-section,
html.app-authenticated #slot-login {
  display: none !important;
}
html.app-authenticated #app-container {
  display: flex !important;
}
/* TRANSKEP: Non-blocking loader & Zero-Flicker Refresh (skill.md) */
#global-loader {
  display: none;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
#global-loader.active {
  display: flex !important;
  opacity: 1 !important;
  pointer-events: auto !important;
}
#global-loader.loader-hidden,
#global-loader.hidden {
  display: none !important;
  visibility: hidden !important;
}
html.app-unauthenticated #login-section,
html.app-unauthenticated #slot-login {
  display: flex !important;
}
html.app-unauthenticated #app-container {
  display: none !important;
}

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
}

/* Glassmorphism Design Token */
.glass {
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

/* Hide Scrollbar for Chrome, Safari and Opera */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: rgba(100, 116, 139, 0.2);
  border-radius: 999px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(100, 116, 139, 0.4);
}

/* FIX: Memperbaiki Ikon Kalender Gelap (Native Date Picker) */
input[type="date"]::-webkit-calendar-picker-indicator {
  filter: invert(1) opacity(0.7);
  cursor: pointer;
  transition: all 0.2s ease;
}
input[type="date"]::-webkit-calendar-picker-indicator:hover {
  filter: invert(1) opacity(1);
  transform: scale(1.1);
}

/* =========================================================================
   TAHAP 1 & 3: AGGRESSIVE PRINT MEDIA QUERY
   Mematikan semua canvas, background glow, dan memaksa kertas putih bersih
   ========================================================================= */
@media print {
  html, body {
    background: #ffffff !important;
    color: #000000 !important;
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    height: 100% !important;
  }
  
  /* Bunuh semua elemen animasi background, canvas, dan efek blur orb */
  canvas, 
  .fixed.-z-10, 
  div[class*="blur-"] {
    display: none !important;
  }

  /* Pastikan kontainer utama dan semua modal disembunyikan saat mencetak */
  .no-print,
  #app-container,
  #login-section,
  [id^="modal"] {
    display: none !important;
  }

  /* FIX: Paksa area cetak tampil penuh, TETAPI hormati JavaScript */
  /* Form hanya akan dicetak jika tidak sedang di-hidden oleh JS */
  .print-only:not(.hidden) {
    display: block !important;
    width: 100% !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  
  /* Sembunyikan secara absolut form cetak lain yang sedang tidak dipanggil */
  .print-only.hidden {
    display: none !important;
  }

  /* Hilangkan efek kaca/glassmorphism pada kertas */
  .glass {
    background: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border: none !important;
    box-shadow: none !important;
  }
  
  /* Matikan background warna/abu-abu dari Tailwind jika ikut terbawa */
  .bg-slate-950, .bg-slate-900, .bg-slate-800, .bg-slate-950\/40, .bg-slate-950\/50 {
    background-color: transparent !important;
  }
  
  .text-slate-200, .text-slate-300, .text-slate-400, .text-white {
    color: #000000 !important;
  }
}

/* =========================================================================
   TRANSKEP: LIGHT MODE GIMMICK ZONE
   PERHATIAN: Semua modifikasi warna, border, shadow untuk Light Mode 
   WAJIB diletakkan di area ini agar tidak merusak tema Dark bawaan.
   ========================================================================= */
body {
  transition: background-color 0.6s ease, color 0.6s ease;
}

/* FIX: Penahan animasi saat pertama kali dimuat (Anti-Blink) */
body.preload-theme, body.preload-theme * {
  transition: none !important;
}

body.light-mode {
  background-color: #f1f5f9 !important; /* slate-100 */
  color: #1e293b !important; /* slate-800 */
}

/* Kaca Default (Termasuk Login & Modal tak terduga) - Tetap Milky/Susu */
.light-mode .glass {
  background: rgba(255, 255, 255, 0.7) !important;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.6) !important;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.01) !important;
}

/* FIX: 1. Clear Glass (Kaca Bening) KHUSUS Area Dashboard & Aplikasi */
/* Diisolasi dengan ketat agar halaman Login tidak ikut berubah */
.light-mode #app-container .glass {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.05) 100%) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    border: 1px solid rgba(255, 255, 255, 0.8) !important;
    border-right-color: rgba(255, 255, 255, 0.4) !important;
    border-bottom-color: rgba(255, 255, 255, 0.4) !important;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.05) !important;
}

/* FIX: 2. Menghidupkan Warna Biasan (Orb Pastel) di Latar Belakang */
.light-mode .fixed.-z-10.bg-indigo-600\/20 {
    background-color: rgba(99, 102, 241, 0.4) !important; /* Indigo pastel menyala */
    transform: scale(1.3);
}

.light-mode .fixed.-z-10.bg-emerald-600\/10 {
    background-color: rgba(236, 72, 153, 0.3) !important; /* Hijau diubah jadi Pink pastel agar mirip referensi */
    transform: scale(1.3) translate(-10%, -10%);
}

/* Override Background Gelap Bawaan Tailwind */
.light-mode .bg-slate-900,
.light-mode .bg-slate-950,
.light-mode .bg-slate-900\/95,
.light-mode .bg-slate-900\/90,
.light-mode .bg-slate-900\/80,
.light-mode .bg-slate-900\/50,
.light-mode .bg-slate-900\/40,
.light-mode .bg-slate-800 {
   background-color: rgba(255, 255, 255, 0.5) !important;
}

/* Override Teks Gelap Bawaan Tailwind (Dikembalikan agar Sidebar aman) */
.light-mode .text-slate-100,
.light-mode .text-slate-200,
.light-mode .text-slate-300,
.light-mode .text-slate-400,
.light-mode .text-white:not(.text-transparent) {
   color: #334155 !important; /* slate-700 */
}

/* Target Spesifik Judul Watermark (Aman & Presisi) */
.light-mode .jd-title-text {
   color: #334155 !important;
}

/* FIX: Memperbaiki Teks Pudar di Light Mode */
.light-mode [class*="text-slate-100/"],
.light-mode [class*="text-slate-200/"],
.light-mode [class*="text-slate-300/"] {
    color: #475569 !important; /* Warna slate-600 agar tetap terbaca meski ada class opacity (contoh text-white/50) */
}

/* Memaksa elemen pudar di Dark Mode menjadi lebih solid di Light Mode agar bisa dibaca */
.light-mode .opacity-10, 
.light-mode .opacity-20, 
.light-mode .opacity-30, 
.light-mode .opacity-40, 
.light-mode .opacity-50 {
    opacity: 0.8 !important; 
}

/* FIX: Memperbaiki Ikon Kalender Gelap (Native Date Picker) di Light Mode */
.light-mode input[type="date"]::-webkit-calendar-picker-indicator {
    filter: invert(0) opacity(0.6) !important;
}
.light-mode input[type="date"]::-webkit-calendar-picker-indicator:hover {
    filter: invert(0) opacity(1) !important;
}

/* Warna Teks Spesifik yang butuh tetap tebal */
.light-mode h3.text-white, .light-mode h2.text-white, .light-mode h4.text-white {
   color: #0f172a !important; /* slate-900 */
}

/* Override Border Gelap */
.light-mode .border-slate-800,
.light-mode .border-slate-700,
.light-mode .border-slate-900,
.light-mode .border-slate-900\/60,
.light-mode .border-slate-800\/60 {
   border-color: rgba(148, 163, 184, 0.3) !important; /* slate-400/30 */
}

/* Tabel Transparan & Garis Tipis (Form Login) - Dipertahankan 100% Asli */
.light-mode #loginForm {
   background-color: rgba(255, 255, 255, 0.02) !important; 
   backdrop-filter: blur(3px) !important; 
   -webkit-backdrop-filter: blur(3px) !important; 
   border: 1px solid rgba(148, 163, 184, 0.4) !important; 
   box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.08) !important;
}

/* Override Tabel agar terlihat elegan di mode terang */
.light-mode thead,
.light-mode thead tr,
.light-mode th {
   background-color: rgba(255, 255, 255, 0.9) !important; 
   color: #334155 !important; 
   border-bottom: 2px solid rgba(226, 232, 240, 1) !important; 
}

.light-mode tbody tr {
   border-bottom-color: rgba(203, 213, 225, 0.5) !important;
}

.light-mode tbody tr:hover {
   background-color: rgba(241, 245, 249, 0.6) !important;
}

/* Override Input Form */
.light-mode input,
.light-mode select,
.light-mode textarea {
   background-color: rgba(255, 255, 255, 0.8) !important;
   color: #1e293b !important;
   border-color: rgba(203, 213, 225, 0.8) !important;
}
.light-mode input:focus,
.light-mode select:focus,
.light-mode textarea:focus {
   background-color: #ffffff !important;
}

/* =========================================================
   FIX: PAKSA SEARCH RESULT SOLID DI LIGHT MODE
   ========================================================= */
.light-mode #searchResultPanel,
.light-mode #searchResultPanel.glass,
#searchResultPanel.light-mode {
    background: #f0f9ff !important;
    background-color: #f0f9ff !important;
    opacity: 1 !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border: 1px solid #bae6fd !important;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.15) !important;
}

/* Pastikan wadah pembungkus isi list di dalamnya juga solid */
.light-mode #searchResultPanel #searchResultContent {
    background: #f0f9ff !important;
    background-color: #f0f9ff !important;
}

/* Warna latar belakang per baris data agar tidak transparan */
.light-mode #searchResultPanel #searchResultContent > div {
    background-color: #f0f9ff !important;
    border-bottom: 1px solid #e0f2fe !important;
}

/* Saat baris diarahkan kursor (hover) */
.light-mode #searchResultPanel #searchResultContent > div:hover {
    background-color: #e0f2fe !important;
}

/* Penangkapan Brutal Hover Menu Search & List jadi biru muda */
.light-mode [class*="hover:bg-slate-"]:hover {
    background-color: #f0f9ff !important;
}

/* Memastikan semua teks di dalam kotak search yang di-hover ikut terbaca */
.light-mode [class*="hover:bg-slate-"]:hover *,
.light-mode [class*="hover:bg-slate-"]:hover p,
.light-mode [class*="hover:bg-slate-"]:hover span {
    color: #0369a1 !important;
}

/* Menyamarkan garis pembatas hitam pada Sidebar / Layout */
.light-mode .border-white\/10,
.light-mode .border-white\/5,
.light-mode .border-white\/20,
.light-mode .border-slate-700\/50,
.light-mode .border-slate-800\/50 {
   border-color: rgba(148, 163, 184, 0.3) !important; 
}

/* --- TAMBAHAN BARU: PERBAIKAN MENU PERMOHONAN & MODAL --- */

/* 1. Backdrop Overlay Modal di Light Mode */
.light-mode .fixed.inset-0.bg-black\/70,
.light-mode .fixed.inset-0.bg-black\/80,
.light-mode .fixed.inset-0.bg-black\/60,
.light-mode .fixed.inset-0.bg-slate-950\/80,
.light-mode .fixed.inset-0.bg-slate-950\/90,
.light-mode .fixed.inset-0[class*="bg-black"],
.light-mode .fixed.inset-0[class*="bg-slate-950"] {
    background-color: rgba(15, 23, 42, 0.5) !important; 
    backdrop-filter: blur(8px) !important; 
    -webkit-backdrop-filter: blur(8px) !important;
}

/* 2. Menargetkan semua Panel/Card Container yang menggunakan warna slate gelap (Filter Area, dll) */
.light-mode div[class*="bg-slate-9"],
.light-mode div[class*="bg-slate-8"] {
    background-color: rgba(255, 255, 255, 0.2) !important;
    border-color: rgba(203, 213, 225, 0.8) !important;
}
/* Pengecualian: kembalikan background absolute (dropdown) ke putih solid */
.light-mode div.absolute[class*="bg-slate-"] {
    background-color: #ffffff !important;
}

/* 3. Memperbaiki Latar Belakang Tabel & Area Kosong (Empty State) */
.light-mode tbody,
.light-mode tbody > tr > td {
    background-color: rgba(255, 255, 255, 0.2) !important; 
}
.light-mode tbody tr[class*="bg-slate-"],
.light-mode tbody tr {
    background-color: transparent !important;
}
/* Memperbaiki teks statis abu-abu */
.light-mode td.text-slate-500,
.light-mode td .text-slate-500 {
    color: #64748b !important; 
}

/* ===========================================================================
   4. FIX: SOLID POPUP & MODAL DI LIGHT MODE (ANTI-TEMBUS PANDANG)
   Mencegah elemen background bocor ke dalam modal popup agar nyaman dibaca
   =========================================================================== */
/* Wadah Utama Kartu Modal (Modal Dialog Box) */
.light-mode .fixed.inset-0 .glass,
.light-mode #app-container .fixed.inset-0 .glass,
.light-mode .fixed.inset-0 > div.glass,
.light-mode .fixed.inset-0 > div > .glass,
.light-mode [id*="modal"] .glass,
.light-mode [id*="Modal"] .glass,
.light-mode #app-container [id*="modal"] .glass,
.light-mode #app-container [id*="Modal"] .glass,
.light-mode #vue-global-modals .glass,
.light-mode #app-container #vue-global-modals .glass,
.light-mode .fixed.inset-0 [class*="bg-slate-900/95"],
.light-mode .fixed.inset-0 [class*="bg-slate-900/90"],
.light-mode .fixed.inset-0 > [class*="bg-slate-900"],
.light-mode .fixed.inset-0 > div[class*="bg-slate-900"] {
    background: #ffffff !important;
    background-color: #ffffff !important;
    backdrop-filter: blur(25px) !important;
    -webkit-backdrop-filter: blur(25px) !important;
    border: 1px solid rgba(203, 213, 225, 0.8) !important;
    box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.25), 0 0 0 1px rgba(0, 0, 0, 0.05) !important;
    color: #1e293b !important;
}

/* Header Modal: Latar belakang bersih & garis batas */
.light-mode .fixed.inset-0 .border-b,
.light-mode [id*="modal"] .border-b,
.light-mode [id*="Modal"] .border-b,
.light-mode #vue-global-modals .border-b {
    background-color: #f8fafc !important; 
    border-bottom: 1px solid #e2e8f0 !important;
}

/* Judul Heading Modal */
.light-mode .fixed.inset-0 h2,
.light-mode .fixed.inset-0 h3,
.light-mode .fixed.inset-0 h4,
.light-mode [id*="modal"] h2,
.light-mode [id*="modal"] h3,
.light-mode [id*="modal"] h4,
.light-mode [id*="Modal"] h2,
.light-mode [id*="Modal"] h3,
.light-mode [id*="Modal"] h4,
.light-mode #vue-global-modals h2,
.light-mode #vue-global-modals h3,
.light-mode #vue-global-modals h4 {
    color: #0f172a !important;
}

/* Tombol Tutup (X) di Header Modal */
.light-mode .fixed.inset-0 button[class*="text-slate-400"],
.light-mode [id*="modal"] button[class*="text-slate-400"],
.light-mode [id*="Modal"] button[class*="text-slate-400"],
.light-mode #vue-global-modals button[class*="text-slate-400"] {
    color: #64748b !important;
    background-color: #f1f5f9 !important;
    border: 1px solid #e2e8f0 !important;
}
.light-mode .fixed.inset-0 button[class*="text-slate-400"]:hover,
.light-mode [id*="modal"] button[class*="text-slate-400"]:hover,
.light-mode [id*="Modal"] button[class*="text-slate-400"]:hover,
.light-mode #vue-global-modals button[class*="text-slate-400"]:hover {
    color: #e11d48 !important;
    background-color: #ffe4e6 !important;
}

/* Form Input, Select, Textarea di dalam Modal */
.light-mode .fixed.inset-0 input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
.light-mode .fixed.inset-0 select,
.light-mode .fixed.inset-0 textarea,
.light-mode [id*="modal"] input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
.light-mode [id*="modal"] select,
.light-mode [id*="modal"] textarea,
.light-mode [id*="Modal"] input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
.light-mode [id*="Modal"] select,
.light-mode [id*="Modal"] textarea,
.light-mode #vue-global-modals input,
.light-mode #vue-global-modals select,
.light-mode #vue-global-modals textarea {
    background-color: #f8fafc !important;
    color: #0f172a !important;
    border: 1px solid #cbd5e1 !important;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.04) !important;
}
.light-mode .fixed.inset-0 input:focus,
.light-mode .fixed.inset-0 select:focus,
.light-mode .fixed.inset-0 textarea:focus,
.light-mode [id*="modal"] input:focus,
.light-mode [id*="modal"] select:focus,
.light-mode [id*="modal"] textarea:focus,
.light-mode [id*="Modal"] input:focus,
.light-mode [id*="Modal"] select:focus,
.light-mode [id*="Modal"] textarea:focus,
.light-mode #vue-global-modals input:focus,
.light-mode #vue-global-modals select:focus,
.light-mode #vue-global-modals textarea:focus {
    background-color: #ffffff !important;
    border-color: #6366f1 !important;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15) !important;
    outline: none !important;
}
.light-mode .fixed.inset-0 input::placeholder,
.light-mode .fixed.inset-0 textarea::placeholder,
.light-mode [id*="modal"] input::placeholder,
.light-mode [id*="modal"] textarea::placeholder,
.light-mode [id*="Modal"] input::placeholder,
.light-mode [id*="Modal"] textarea::placeholder,
.light-mode #vue-global-modals input::placeholder,
.light-mode #vue-global-modals textarea::placeholder {
    color: #94a3b8 !important;
}

/* Label & Helper Text di dalam Modal */
.light-mode .fixed.inset-0 label,
.light-mode [id*="modal"] label,
.light-mode [id*="Modal"] label,
.light-mode #vue-global-modals label {
    color: #334155 !important;
    font-weight: 700 !important;
}

/* Kotak Info, Stat Cards & Sub-panel di dalam Modal (Termasuk Sisa Cuti, Panel SK, SOP) */
.light-mode .fixed.inset-0 div.bg-slate-950,
.light-mode .fixed.inset-0 div[class*="bg-slate-900"],
.light-mode .fixed.inset-0 div[class*="bg-slate-800"],
.light-mode [id*="modal"] div.bg-slate-950,
.light-mode [id*="modal"] div[class*="bg-slate-900"],
.light-mode [id*="Modal"] div.bg-slate-950,
.light-mode [id*="Modal"] div[class*="bg-slate-900"],
.light-mode #vue-global-modals div.bg-slate-950,
.light-mode #vue-global-modals div[class*="bg-slate-900"] {
    background-color: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05) !important;
}

/* Teks Kontras di dalam Modal */
.light-mode .fixed.inset-0 p.text-slate-300,
.light-mode .fixed.inset-0 span.text-slate-300,
.light-mode .fixed.inset-0 p.text-slate-200,
.light-mode .fixed.inset-0 span.text-slate-200,
.light-mode [id*="modal"] p.text-slate-300,
.light-mode [id*="modal"] span.text-slate-300,
.light-mode [id*="Modal"] p.text-slate-300,
.light-mode [id*="Modal"] span.text-slate-300,
.light-mode #vue-global-modals p.text-slate-300,
.light-mode #vue-global-modals span.text-slate-300,
.light-mode #vue-global-modals p.text-slate-200,
.light-mode #vue-global-modals span.text-slate-200 {
    color: #0f172a !important;
}
.light-mode .fixed.inset-0 p.text-slate-400,
.light-mode .fixed.inset-0 span.text-slate-400,
.light-mode .fixed.inset-0 p.text-slate-500,
.light-mode .fixed.inset-0 span.text-slate-500,
.light-mode [id*="modal"] p.text-slate-400,
.light-mode [id*="modal"] span.text-slate-400,
.light-mode [id*="modal"] p.text-slate-500,
.light-mode [id*="modal"] span.text-slate-500,
.light-mode [id*="Modal"] p.text-slate-400,
.light-mode [id*="Modal"] span.text-slate-400,
.light-mode [id*="Modal"] p.text-slate-500,
.light-mode [id*="Modal"] span.text-slate-500,
.light-mode #vue-global-modals p.text-slate-400,
.light-mode #vue-global-modals span.text-slate-400,
.light-mode #vue-global-modals p.text-slate-500,
.light-mode #vue-global-modals span.text-slate-500 {
    color: #64748b !important;
}

/* Banner Info & Notifikasi di dalam Modal */
.light-mode .fixed.inset-0 div[class*="bg-emerald-500\/10"],
.light-mode [id*="modal"] div[class*="bg-emerald-500\/10"],
.light-mode [id*="Modal"] div[class*="bg-emerald-500\/10"],
.light-mode #vue-global-modals div[class*="bg-emerald-500\/10"] {
    background-color: #ecfdf5 !important;
    border: 1px solid #a7f3d0 !important;
}
.light-mode .fixed.inset-0 .text-emerald-400,
.light-mode .fixed.inset-0 [class*="text-emerald-400"],
.light-mode [id*="modal"] .text-emerald-400,
.light-mode [id*="modal"] [class*="text-emerald-400"],
.light-mode [id*="Modal"] .text-emerald-400,
.light-mode [id*="Modal"] [class*="text-emerald-400"],
.light-mode #vue-global-modals .text-emerald-400,
.light-mode #vue-global-modals [class*="text-emerald-400"] {
    color: #047857 !important;
}

/* Kotak Upload & Empty Notice di dalam Modal */
.light-mode .fixed.inset-0 div[class*="border-dashed"],
.light-mode [id*="modal"] div[class*="border-dashed"],
.light-mode [id*="Modal"] div[class*="border-dashed"] {
    background-color: #f8fafc !important;
    border-color: #cbd5e1 !important;
    color: #64748b !important;
}
.light-mode .fixed.inset-0 div[class*="border-dashed"]:hover,
.light-mode [id*="modal"] div[class*="border-dashed"]:hover,
.light-mode [id*="Modal"] div[class*="border-dashed"]:hover {
    background-color: #f1f5f9 !important;
    border-color: #6366f1 !important;
}

/* 5. Memperbaiki Tombol Tab Inaktif & Bypass yang berwarna abu-abu gelap */
.light-mode button[class*="bg-slate-800"]:not([id^="nav-"]),
.light-mode button[class*="bg-slate-900"]:not([id^="nav-"]) {
    background-color: #ffffff !important;
    color: #475569 !important;
    border: 1px solid rgba(226, 232, 240, 1) !important;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05) !important;
}
.light-mode button[class*="bg-slate-800"]:not([id^="nav-"]):hover,
.light-mode button[class*="bg-slate-900"]:not([id^="nav-"]):hover {
    background-color: #f8fafc !important; 
    color: #0f172a !important;
}

/* ===========================================================================
   6. FIX: MENGEMBALIKAN TEKS PUTIH & SHADOW PADA TOMBOL AKSI UTAMA 
   Ditingkatkan Specificity-nya agar kebal dari global override Light Mode
   =========================================================================== */
.light-mode button.bg-indigo-500, .light-mode button.bg-indigo-600,
.light-mode button.bg-purple-500, .light-mode button.bg-purple-600,
.light-mode button.bg-blue-500, .light-mode button.bg-blue-600,
.light-mode button.bg-emerald-500, .light-mode button.bg-emerald-600,
.light-mode button.bg-amber-500, .light-mode button.bg-amber-600,
.light-mode button.bg-rose-500, .light-mode button.bg-rose-600,
.light-mode .bg-indigo-500.text-white, .light-mode .bg-indigo-600.text-white,
.light-mode .bg-purple-500.text-white, .light-mode .bg-purple-600.text-white {
    color: #ffffff !important;
    box-shadow: 0 4px 10px -2px rgba(0, 0, 0, 0.15) !important;
    border-color: transparent !important;
}

/* Memastikan ikon (tag <i>) atau elemen span di dalam tombol solid juga ikut putih */
.light-mode button.bg-indigo-500 *, .light-mode button.bg-indigo-600 *,
.light-mode button.bg-purple-500 *, .light-mode button.bg-purple-600 *,
.light-mode button.bg-blue-500 *, .light-mode button.bg-blue-600 *,
.light-mode button.bg-emerald-500 *, .light-mode button.bg-emerald-600 *,
.light-mode button.bg-amber-500 *, .light-mode button.bg-amber-600 *,
.light-mode button.bg-rose-500 *, .light-mode button.bg-rose-600 *,
.light-mode .bg-indigo-500.text-white *, .light-mode .bg-indigo-600.text-white *,
.light-mode .bg-purple-500.text-white *, .light-mode .bg-purple-600.text-white * {
    color: #ffffff !important;
}

/* 7. OVERRIDE TOMBOL LOGIN KHUSUS LIGHT MODE (TRANSPARAN BENING) */
.light-mode #loginForm button[type="submit"] {
    background: rgba(99, 102, 241, 0.1) !important; 
    color: #4f46e5 !important; 
    border: 1px solid rgba(99, 102, 241, 0.3) !important; 
    box-shadow: none !important; 
}

.light-mode #loginForm button[type="submit"]:hover {
    background: rgba(99, 102, 241, 0.2) !important; 
    color: #4338ca !important; 
    border-color: rgba(99, 102, 241, 0.5) !important; 
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.15) !important; 
}

.light-mode #loginForm button[type="submit"] i {
    color: inherit !important;
}

.light-mode #loginForm button[onclick="openLupaPassword()"] {
    background-color: rgba(168, 85, 247, 0.1) !important; 
    color: #7e22ce !important; 
    border: 1px solid rgba(168, 85, 247, 0.3) !important; 
    box-shadow: none !important; 
}

.light-mode #loginForm button[onclick="openLupaPassword()"]:hover {
    background-color: rgba(168, 85, 247, 0.2) !important; 
    color: #6b21a8 !important; 
    border-color: rgba(168, 85, 247, 0.5) !important; 
}

.light-mode #loginForm button[onclick="openLupaPassword()"] i {
    color: inherit !important; 
}

/* ==========================================================
   8. OVERRIDE FULLSCREEN MODAL PK & PCK KHUSUS LIGHT MODE 
   (Mencegah tembus pandang layer bawah)
   ========================================================== */
.light-mode #modalFullScreenPK,
.light-mode #modalFullScreenPCK {
    background-color: #f1f5f9 !important; /* Warna background solid abu muda (slate-100) */
}

.light-mode #modalFullScreenPK > .glass,
.light-mode #modalFullScreenPCK > .glass {
    background-color: #ffffff !important; /* Header dan footer putih solid */
    border-color: rgba(226, 232, 240, 1) !important; /* Border yang bersih */
}

/* ==========================================================
   9. FIX: FULLSCREEN MODAL PK & PCK DI ATAS SIDEBAR & TOP BAR
   (Memastikan z-index mutlak di atas seluruh navigasi sistem)
   ========================================================== */
#modalFullScreenPK,
#modalFullScreenPCK {
    z-index: 2000000 !important;
}

/* FIX: Memotong sudut bocor pada modal Sisa Cuti (Tingkat Lanjut WebKit) */
#modalSisaCuti .glass {
    overflow: hidden !important;
    border-radius: 1.5rem !important; /* Setara Tailwind rounded-3xl */
    transform: translateZ(0); 
    -webkit-mask-image: -webkit-radial-gradient(white, black);
    mask-image: radial-gradient(white, black);
}

/* Memastikan elemen header (anak pertama) ikut melengkung secara paksa */
#modalSisaCuti .glass > div:first-child {
    border-top-left-radius: 1.5rem !important;
    border-top-right-radius: 1.5rem !important;
}
