/* =========================================================
   🌗 SMP PESAT — GLOBAL THEME STYLES
   ========================================================= */

:root {
  --fade-speed: 0.5s;
}
	
/* === TRANSITION UNIVERSAL === */
body, .card, .navbar, .form-control, .form-select,
.modal-content, .btn, input, textarea, select, .table, .alert, .pagination .page-link {
  transition: background-color .3s ease, color .3s ease,
              border-color .3s ease, box-shadow .3s ease;
}

/* === BASE LIGHT MODE === */
body {
  background-color: #f7fbff;
  color: #1a1a1a;
}

@keyframes fadeInPage {
  to { opacity: 1; transform: translateY(0); }
}

/* Navbar */
.navbar {
  background-color: #ffffff !important;
  border-bottom: 1px solid rgba(0,0,0,0.05);
  backdrop-filter: blur(8px);
}
.navbar .nav-link, .navbar-brand span {
  color: #1a1a1a;
}
.navbar .nav-link:hover {
  color: #0d6efd;
}

.navbar .dropdown-menu {
  border-radius: 10px;
  border: 1px solid rgba(0,0,0,0.1);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  background-color: #ffffff;
  transition: background-color 0.3s, color 0.3s, border-color 0.3s;
}

.navbar .dropdown-item {
  color: #212529;
  transition: background-color 0.2s, color 0.2s;
}

.navbar .dropdown-item:hover {
  background-color: #f8f9fa;
  color: #0d6efd;
}

.login-card {
  width: 420px;
  border-radius: 1rem;
  transition: background-color .5s ease, color .5s ease, box-shadow .5s ease;
}

.theme-toggle {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 1.4rem;
  cursor: pointer;
  color: inherit;
  transition: transform .2s ease, color .3s ease;
}

.theme-toggle:hover { transform: scale(1.2) rotate(10deg); }

.shake {
  animation: shake 0.3s ease-in-out;
}

@keyframes shake {
  0%,100% { transform: translateX(0); }
  25% { transform: translateX(-6px); }
  75% { transform: translateX(6px); }
}

/* Cards & Modal */
.card, .modal-content {
  background-color: #ffffff;
  border: 1px solid rgba(0,0,0,0.08);
  color: #222;
}

/* Forms */
.form-control, .form-select, textarea {
  background-color: #fff;
  color: #222;
  border-color: #ccc;
  transition: all 0.3s ease;
}
.form-control:focus, .form-select:focus {
  border-color: #4da3ff;
  box-shadow: 0 0 0 .15rem rgba(77,163,255,.25);
}

/* Disabled State (Light Mode) */
.form-control:disabled,
.form-select:disabled,
textarea:disabled {
  background-color: #f1f1f1;
  color: #888;
  border-color: #d2d2d2;
  cursor: not-allowed;
  opacity: 1; /* agar tetap terlihat jelas */
}

/* Buttons */
.btn-outline-secondary {
  color: #333;
  border-color: #bbb;
}
.btn-outline-secondary:hover { background: #f2f2f2; }
.btn-primary {
  background-color: #0d6efd;
  border-color: #0d6efd;
}

/* Table & Alerts */
.table-striped > tbody > tr:nth-of-type(odd) {
  background-color: rgba(0,0,0,0.02);
}
.alert {
  background-color: #f8f9fa;
  color: #222;
}

/* Pagination */
.pagination .page-link {
  background: #fff;
  color: #333;
  border: 1px solid #ddd;
}
.pagination .page-item.active .page-link {
  background: #0d6efd;
  color: #fff;
  border-color: #0d6efd;
}
.pagination .page-link:hover {
  background: #e9f2ff;
}

/* Grid cards - Media */
.media-thumb {
  width:100%; height:150px; object-fit:cover;
  border-radius:.75rem; transition:transform .2s ease;
}
.media-thumb:hover {
  transform:scale(1.02);
}

.media-box {
  position: relative;
  overflow: hidden;
  border-radius: .75rem;
  background: #eef4ff;
}

.play-btn {
  position:absolute; top:50%; left:50%;
  transform:translate(-50%,-50%);
  background:rgba(0,0,0,0.5); color:white;
  border:none; width:48px; height:48px;
  border-radius:50%; font-size:22px;
  display:flex; align-items:center; justify-content:center;
  transition:background .2s ease;
}
.play-btn:hover { background:rgba(0,0,0,0.7); }

.card-hover {
  transition: all .25s ease;
  border-radius:1rem; overflow:hidden;
  background:white; border:none;
  box-shadow:0 4px 10px rgba(0,0,0,.05);
  position:relative;
}
.card-hover:hover {
  transform:translateY(-3px);
  box-shadow:0 6px 16px rgba(0,0,0,.08);
}

.action-btns {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 5; /* di atas video */
  opacity: 0;
  transition: opacity .2s ease;
  pointer-events: auto;
}
/* === Tombol Edit/Hapus di atas Thumbnail === */
.action-btns {
  position: absolute;
  top: 10px;
  right: 10px;
  display: flex;
  gap: 6px;
  z-index: 10;
  opacity: 0;
  transform: translateY(-5px);
  transition: all 0.25s ease;
}

.card-hover:hover .action-btns {
  opacity: 1;
  transform: translateY(0);
}

/* === Tombol bulat === */
.action-btns .btn {
  border: none;
  outline: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.9);
  color: #333;
  font-size: 16px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  transition: all 0.2s ease;
  cursor: pointer;
}

.action-btns .btn:hover {
  transform: scale(1.08);
}

/* Warna tombol sesuai fungsi */
.btn-edit:hover {
  background: #0d6efd;
  color: #fff;
}

.btn-delete:hover {
  background: #dc3545;
  color: #fff;
}
.badge-soft {
  background: #e9f3ff;
  color: #1067c9;
  border-radius: .5rem;
  font-weight: 500;
  padding: 0.4em 0.6em;
  transition: background-color 0.3s, color 0.3s;
}

/* =========================================================
   🌙 DARK MODE
   ========================================================= */
body.dark {
  background-color: #121212 !important;
  color: #f1f1f1 !important;
}

/* Navbar */
body.dark .navbar {
  background: rgba(20, 20, 20, 0.9) !important;
  border-bottom: 1px solid #2d2d2d !important;
}
body.dark .navbar .nav-link,
body.dark .navbar-brand span {
  color: #e0e0e0 !important;
}
body.dark .navbar .nav-link:hover {
  color: #58a0ff !important;
}

body.dark .navbar .dropdown-menu {
  background-color: #1e1e1e;
  border-color: rgba(255,255,255,0.1);
  box-shadow: 0 4px 12px rgba(0,0,0,0.5);
}

body.dark .navbar .dropdown-item {
  color: #e0e0e0;
}

body.dark .navbar .dropdown-item:hover {
  background-color: #2a2a2a;
  color: #58a0ff;
}

/* Divider style in dropdown */
.navbar .dropdown-divider {
  border-top: 1px solid rgba(0,0,0,0.1);
}
body.dark .navbar .dropdown-divider {
  border-top: 1px solid rgba(255,255,255,0.1);
}

/* Animasi halus muncul dropdown */
.dropdown-menu {
  animation: fadeIn 0.15s ease-in-out;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-5px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Form Login */
body.dark .card {
  background-color: #161b22 !important;
  color: #e6edf3;
  border: 1px solid #30363d;
}

body.dark .form-control,
body.dark .btn-outline-secondary {
  background-color: #0d1117;
  color: #e6edf3;
  border-color: #30363d;
}

body.dark .form-control:focus {
  border-color: #58a6ff;
  box-shadow: 0 0 0 .15rem rgba(88,166,255,.25);
}

body.dark .btn-primary {
  background-color: #238636;
  border-color: #2ea043;
}

body.dark .btn-primary:hover {
  background-color: #2ea043;
  border-color: #2ea043;
}

body.dark .text-secondary {
  color: #8b949e !important;
}

.swal2-popup {
  border-radius: 1rem !important;
}

/* Card & Modal */
body.dark .card, 
body.dark .modal-content {
  background-color: #1f1f1f !important;
  border-color: #333 !important;
  color: #e0e0e0 !important;
  box-shadow: 0 0 10px rgba(0,0,0,0.2);
}

/* Buttons */
body.dark .btn-outline-primary {
  color: #69b3ff;
  border-color: #69b3ff;
}
body.dark .btn-outline-primary:hover {
  background-color: #69b3ff;
  color: #fff;
}
body.dark .btn-outline-warning {
  color: #ffcf69;
  border-color: #ffcf69;
}
body.dark .btn-outline-warning:hover {
  background-color: #ffcf69;
  color: #000;
}
body.dark .btn-outline-danger {
  color: #ff7b7b;
  border-color: #ff7b7b;
}
body.dark .btn-outline-danger:hover {
  background-color: #ff7b7b;
  color: #fff;
}
body.dark .btn-primary {
  background: #1d73e8;
  border-color: #1d73e8;
}

/* Form Fields */
body.dark input,
body.dark select,
body.dark textarea {
  background: #2a2a2a;
  color: #eee;
  border-color: #444;
}
body.dark input:focus,
body.dark select:focus,
body.dark textarea:focus {
  box-shadow: 0 0 0 .25rem rgba(88,160,255,0.25);
  border-color: #58a0ff;
}

/* === Dark Table === */
body.dark .table {
  background-color: #1e1e1e;
  color: #e0e0e0;
  border-color: #333;
}
body.dark .table thead th {
  background-color: #2a2a2a;
  color: #f1f1f1;
  border-bottom: 1px solid #444;
}
body.dark table tbody tr,
body.dark table tbody td {
  background-color: #1a1a1a !important;
  color: #e6e6e6 !important;
  border-color: #333 !important;
}
body.dark table tbody tr:nth-child(even) {
  background-color: #222 !important;
}
body.dark table tbody tr:hover {
  background-color: #2b2b2b !important;
}
body.dark #tbody td {
  color: #ddd;
}
body.dark #tbody td.text-secondary {
  color: #aaa !important;
}

/* Pagination (Dark) */
body.dark .pagination .page-link {
  background: #1f1f1f;
  border-color: #333;
  color: #ddd;
}
body.dark .pagination .page-link:hover {
  background: #2c2c2c;
  color: #fff;
}
body.dark .pagination .page-item.active .page-link {
  background: #3c7dff;
  border-color: #3c7dff;
  color: #fff;
}

/* Grid Cards */
body.dark .card-hover {
  background-color: #1f1f1f;
  border-color: #333;
  color: #eee;
}
body.dark .card-hover:hover {
  box-shadow: 0 0.5rem 1rem rgba(0,0,0,0.4);
  transform: translateY(-2px);
}

/* Alerts */
body.dark .alert {
  background-color: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.15);
  color: #eee;
}

/* Badges */
body.dark .badge.bg-info-subtle.text-info {
  background-color: rgba(0, 160, 255, 0.1) !important;
  color: #6dc6ff !important;
  border: 1px solid rgba(109, 198, 255, 0.3);
}

/* Placeholder */
body.dark ::placeholder {
  color: #aaa;
}

/* Lightbox */
body.dark .glightbox-clean .gdesc-inner {
  color: #ccc !important;
}

/* =========================================================
   🌞🌙 THEME TOGGLE SWITCH
   ========================================================= */
.theme-switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 26px;
}
.theme-switch input { opacity: 0; width: 0; height: 0; }
.slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background: linear-gradient(145deg, #e0e7ff, #ffffff);
  border-radius: 30px;
  box-shadow: inset 2px 2px 4px rgba(0,0,0,0.1),
              inset -2px -2px 4px rgba(255,255,255,0.7);
  transition: background .4s, box-shadow .4s;
}
.slider::before {
  content: "";
  position: absolute;
  height: 20px;
  width: 20px;
  left: 3px;
  bottom: 3px;
  background-color: #fff;
  border-radius: 50%;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
  transition: transform .4s ease, background .4s ease;
}
.slider .icon { position: absolute; top: 3px; font-size: 14px; transition: opacity .3s ease; }
.slider .sun { left: 4px; opacity: 1; }
.slider .moon { right: 4px; opacity: 0; }
input:checked + .slider {
  background: linear-gradient(145deg, #28313b, #485461);
  box-shadow: inset 2px 2px 6px rgba(0,0,0,0.4),
              inset -2px -2px 4px rgba(255,255,255,0.1);
}
input:checked + .slider::before { transform: translateX(24px); background-color: #ffe86b; }
input:checked + .slider .sun { opacity: 0; }
input:checked + .slider .moon { opacity: 1; }

/* =========================================================
   ✨ PAGE TRANSITION EFFECTS
   ========================================================= */
body { opacity: 0; transition: opacity 0.5s ease-in-out, background-color .3s ease, color .3s ease; }
body.loaded { opacity: 1; }
body.fade-out { opacity: 0; pointer-events: none; transition: opacity 0.4s ease-in-out; }

/* =========================================================
   ✨ MODAL SMOOTH SCROLL + FADE-IN ANIMATION
   ========================================================= */

/* Atur modal agar bisa scroll */
.modal-dialog-scrollable .modal-content {
  max-height: calc(100vh - 2rem);
  display: flex;
  flex-direction: column;
}
.modal-dialog-scrollable .modal-body {
  overflow-y: auto;
  flex: 1 1 auto;
  padding: 1rem 1.25rem;
  -webkit-overflow-scrolling: touch;
}

/* Modal animation */
.modal.fade .modal-dialog {
  transform: translateY(30px);
  opacity: 0;
  transition: transform 0.35s ease, opacity 0.35s ease;
}
.modal.show .modal-dialog {
  transform: translateY(0);
  opacity: 1;
}

/* Sticky header/footer untuk tetap terlihat saat scroll */
.modal-header,
.modal-footer {
  flex-shrink: 0;
  z-index: 5;
  position: sticky;
  background: var(--bs-body-bg);
}
.modal-header { top: 0; }
.modal-footer { bottom: 0; }

/* Responsif di mobile */
@media (max-width: 768px) {
  .modal-dialog {
    margin: 0.5rem;
  }
  .modal-content {
    border-radius: 0.75rem;
    max-height: calc(100vh - 1rem);
  }
  .modal-body {
    max-height: calc(100vh - 10rem);
    overflow-y: auto;
  }
}

/* 🌙 Dark Mode support */
body.dark .modal-content {
  background-color: #1f1f1f !important;
  color: #eee !important;
}
body.dark .modal-header,
body.dark .modal-footer {
  background-color: #1f1f1f !important;
  border-color: #333 !important;
}

/* === MODE DRAWER: aktif hanya di layar kecil === */
@media (max-width: 768px) {
  .modal.fade.drawer-right .modal-dialog {
    position: fixed;
    margin: 0;
    right: 0;
    top: 0;
    bottom: 0;
    height: 100%;
    max-width: 95%;
    width: 380px;
    transform: translateX(100%);
    border-radius: 0;
    opacity: 1;
    transition: transform 0.35s ease;
  }
  .modal.show.drawer-right .modal-dialog {
    transform: translateX(0);
  }

  /* Konten scrollable */
  .modal.fade.drawer-right .modal-dialog-scrollable .modal-content {
    height: 100%;
    display: flex;
    flex-direction: column;
  }
  .modal.fade.drawer-right .modal-body {
    overflow-y: auto;
    flex: 1 1 auto;
    -webkit-overflow-scrolling: touch;
  }

  /* Header & Footer tetap terlihat */
  .modal.fade.drawer-right .modal-header,
  .modal.fade.drawer-right .modal-footer {
    position: sticky;
    background: var(--bs-body-bg);
    z-index: 10;
  }
  .modal.fade.drawer-right .modal-header { top: 0; }
  .modal.fade.drawer-right .modal-footer { bottom: 0; }

  /* Dark mode */
  body.dark .modal.fade.drawer-right .modal-content {
    background-color: #1e1e1e;
    color: #eee;
    border-color: #333;
  }
  body.dark .modal.fade.drawer-right .modal-header,
  body.dark .modal.fade.drawer-right .modal-footer {
    background-color: #1e1e1e;
  }
}

/* === USER NAME LEFT OF TOGGLE === */
#userName {
  font-size: 0.95rem;
  color: #222;
  user-select: none;
  white-space: nowrap;
  max-width: none;
}

body.dark #userName {
  color: #e0e0e0;
}

#userName::before {
  content: "👋 ";
  font-size: 1rem;
}

@media (max-width: 576px) {
  #userName {
    max-width: 100px;
    font-size: 0.85rem;
  }
}

/* === Filter Bar Modern === */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .6rem;
}

.filter-bar .filter-item {
  flex: 1 1 160px;
  min-width: 120px;
}

.filter-bar .input-group-text {
  background: #f8f9fa;
  color: #555;
  border-color: #ced4da;
  font-size: 0.9rem;
}

.filter-bar .form-control,
.filter-bar .form-select {
  border-color: #ced4da;
}

.filter-bar .btn {
  white-space: nowrap;
  padding-inline: 0.8rem;
}

/* === Dark Mode === */
body.dark .filter-bar .input-group-text {
  background: #2a2a2a;
  color: #bbb;
  border-color: #444;
}
body.dark .filter-bar .form-control,
body.dark .filter-bar .form-select {
  background: #1c1c1c;
  border-color: #444;
  color: #e0e0e0;
}
body.dark .filter-bar .form-control::placeholder {
  color: #aaa;
}

/* Focus dalam dark mode */
body.dark .filter-bar .form-control:focus,
body.dark .filter-bar .form-select:focus {
  border-color: #58a0ff;
  box-shadow: 0 0 0 .15rem rgba(88,160,255,.25);
}

/* Disabled State (Dark Mode) */
body.dark .form-control:disabled,
body.dark .form-select:disabled,
body.dark textarea:disabled {
  background-color: #2a2a2a;
  color: #777;
  border-color: #3a3a3a;
  cursor: not-allowed;
  opacity: 1;
}

/* Optional - agar disabled option di select lebih jelas */
body.dark .form-select option:disabled {
  color: #666;
}

/* === Responsif === */
@media (max-width: 768px) {
  .filter-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .filter-bar .filter-item,
  .filter-bar .btn {
    width: 100%;
  }

  .filter-bar .input-group-text {
    width: 38px;
    justify-content: center;
  }
}

/* === File Item (Backup List) === */
.file-item {
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 10px 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
  background: #ffffff;
  transition: background-color 0.3s, border-color 0.3s, color 0.3s;
}

.file-item small {
  color: #666;
  transition: color 0.3s;
}

/* Hover effect (light mode) */
.file-item:hover {
  background: #f8f9fa;
  border-color: #ccc;
}

/* === Dark Mode === */
body.dark .file-item {
  background: #1f1f1f;
  border-color: #2c2c2c;
}

body.dark .file-item small {
  color: #aaa;
}

body.dark .file-item:hover {
  background: #2a2a2a;
  border-color: #3a3a3a;
}

/* === Badge Soft (Dark Mode) === */
body.dark .badge-soft {
  background: rgba(56, 139, 253, 0.15);
  color: #61a8ff;
}

/* === DARK MODE: Preview Media di Modal Edit === */
body.dark .media-preview {
  background: rgba(35, 35, 35, 0.9) !important;
  border-color: #333 !important;
  color: #e0e0e0 !important;
}

body.dark .media-preview h6 {
  color: #ddd !important;
}

body.dark .media-preview .border {
  background: #1c1c1c !important;
  border-color: #333 !important;
  color: #ccc !important;
}

body.dark .media-preview img,
body.dark .media-preview video {
  border-color: #444 !important;
}

/* Tombol hapus media (ikon X) agar kontras di dark mode */
body.dark .media-preview .delete-media-btn {
  background: rgba(200, 30, 30, 0.9) !important;
  color: #fff !important;
  border: none;
}
body.dark .media-preview .delete-media-btn:hover {
  background: rgba(220, 50, 50, 1) !important;
}

/* === DARK MODE: Preview Upload Baru === */
body.dark .new-upload-preview {
  background: rgba(25, 25, 25, 0.9) !important;
  border: 1px solid #333 !important;
  color: #ddd;
}

body.dark .new-upload-preview img,
body.dark .new-upload-preview video {
  border-color: #444 !important;
  background: #111;
}

/* === DARK MODE: Modal Preview (Fullscreen Gambar / Video) === */
body.dark .modal-content.bg-dark {
  background: #0f0f0f !important;
  color: #f5f5f5 !important;
  border: 1px solid #333 !important;
}

body.dark .modal-content.bg-dark video,
body.dark .modal-content.bg-dark img {
  border: 1px solid #444;
  background: #000;
}

body.dark .btn-close-white {
  filter: brightness(0.9) contrast(1.2);
}

/* === Autocomplete Suggestion (browser dropdown) === */
input:-webkit-autofill,
textarea:-webkit-autofill,
select:-webkit-autofill {
  -webkit-text-fill-color: #fff !important;
  -webkit-box-shadow: 0 0 0 50px #141618 inset !important;
  box-shadow: 0 0 0 50px #141618 inset !important;
}

body.dark input:-webkit-autofill {
  -webkit-text-fill-color: #f5f5f5 !important;
  -webkit-box-shadow: 0 0 0 50px #141618 inset !important;
}

body.dark input::-webkit-credentials-auto-fill-button {
  background-color: #222 !important;
  color: #fff !important;
}

/* Dropdown autofill background (Chrome/Safari suggestions) */
body.dark input:-internal-autofill-selected {
  background-color: #1a1c1e !important;
  color: #eee !important;
}

/* === SweetAlert2 (Dark Mode) === */
body.dark .swal2-popup {
  background: #1e1f22 !important;
  color: #e5e5e5 !important;
  border: 1px solid #2b2b2b !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.7);
}

body.dark .swal2-title {
  color: #ffffff !important;
}

body.dark .swal2-html-container {
  color: #c9c9c9 !important;
}

body.dark .swal2-icon.swal2-warning {
  border-color: #ffcc80 !important;
  color: #ffcc80 !important;
  background: rgba(255, 204, 128, 0.05);
}

body.dark .swal2-confirm {
  background: #6366f1 !important; /* Ungu halus */
  border: none !important;
  color: #fff !important;
  box-shadow: none !important;
}
body.dark .swal2-confirm:hover {
  background: #818cf8 !important;
}

body.dark .swal2-cancel {
  background: #444 !important;
  color: #eee !important;
  border: none !important;
}
body.dark .swal2-cancel:hover {
  background: #555 !important;
}

/* === Overlay === */
body.dark .swal2-container {
  background: rgba(0, 0, 0, 0.6) !important;
}

/* === Tabel === */
body.dark table.table {
  background: #1b1d1f;
  color: #e2e2e2;
}

body.dark table.table thead th {
  background: #232527;
  color: #f0f0f0;
  border-bottom: 1px solid #333;
}

body.dark table.table tbody td {
  background: #1b1d1f;
  border-top: 1px solid #2c2c2c;
  color: #d5d5d5;
}

body.dark table.table tbody tr:hover td {
  background: #242628 !important;
}

/* === Tombol di tabel === */
body.dark .btn-outline-primary {
  border-color: #4a90ff;
  color: #4a90ff;
}
body.dark .btn-outline-primary:hover {
  background: #4a90ff;
  color: #fff;
}

body.dark .btn-outline-danger {
  border-color: #ff4d4d;
  color: #ff4d4d;
}
body.dark .btn-outline-danger:hover {
  background: #ff4d4d;
  color: #fff;
}

/* === Badges (kelas, status, dll.) === */
body.dark .badge {
  background: #2e2f31;
  color: #c5c5c5;
}
body.dark .badge-soft {
  background: rgba(88,160,255,0.15);
  color: #58a0ff;
  border: 1px solid rgba(88,160,255,0.3);
}

/* === Dark Mode === */
body.dark input[type="date"].form-control {
  background-color: #1c1c1c !important;
  color: #e0e0e0 !important;
  border-color: #444 !important;
}

/* === Dark Mode Placeholder / Icon === */
body.dark input[type="date"].form-control::-webkit-calendar-picker-indicator {
  filter: invert(1); /* ubah warna icon kalender agar tampak di tema gelap */
}

/* === Focus Style (Dark Mode) === */
body.dark input[type="date"].form-control:focus {
  border-color: #58a0ff !important;
  box-shadow: 0 0 0 .15rem rgba(88, 160, 255, .3);
}

body.dark .action-btns .btn {
  background: rgba(40, 40, 40, 0.9) !important;
  color: #ddd !important;
  box-shadow: 0 2px 6px rgba(0,0,0,0.4);
  border: 1px solid rgba(80, 80, 80, 0.6);
}

body.dark .action-btns .btn:hover {
  transform: scale(1.08);
}

/* Warna spesifik hover */
body.dark .btn-edit:hover {
  background: #3b82f6 !important; /* biru lembut */
  color: #fff !important;
  box-shadow: 0 2px 6px rgba(59, 130, 246, 0.5);
}

body.dark .btn-delete:hover {
  background: #ef4444 !important; /* merah modern */
  color: #fff !important;
  box-shadow: 0 2px 6px rgba(239, 68, 68, 0.5);
}