.nav-btn {
  transition: all 0.2s;
}
.form-checkbox {
  width: 1rem;
  height: 1rem;
}
section {
  animation: fadeIn 0.25s ease;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}
table th {
  position: sticky;
  top: 0;
  background: #f9fafb;
  z-index: 10;
}

/* ---------- Dark Mode Otomatis & Manual ---------- */
html.dark body {
  background-color: #0f172a;
  color: #f1f5f9;
}
html.dark nav,
html.dark .bg-white {
  background-color: #1e293b !important;
  color: #f1f5f9 !important;
  border-color: #334155 !important;
}
html.dark .bg-gray-50,
html.dark table th {
  background-color: #0f172a !important;
  color: #cbd5e1 !important;
  border-color: #334155 !important;
}
html.dark .bg-gray-100 {
  background-color: #334155 !important;
  color: #e2e8f0 !important;
}
html.dark .bg-indigo-50 {
  background-color: rgba(79, 70, 229, 0.18) !important;
  border-color: rgba(99, 102, 241, 0.4) !important;
}
html.dark .bg-amber-50\/80,
html.dark .bg-amber-50\/40,
html.dark .bg-yellow-50 {
  background-color: rgba(245, 158, 11, 0.14) !important;
  color: #fde68a !important;
  border-color: rgba(245, 158, 11, 0.35) !important;
}
html.dark .bg-blue-50 {
  background-color: rgba(59, 130, 246, 0.15) !important;
  color: #bfdbfe !important;
  border-color: rgba(59, 130, 246, 0.35) !important;
}
html.dark .text-gray-900,
html.dark .text-gray-800,
html.dark .text-gray-700,
html.dark .text-indigo-950,
html.dark .text-amber-950 {
  color: #f1f5f9 !important;
}
html.dark .text-gray-600,
html.dark .text-gray-500,
html.dark .text-indigo-800 {
  color: #94a3b8 !important;
}
html.dark .text-indigo-700 {
  color: #818cf8 !important;
}
html.dark .text-amber-700,
html.dark .text-yellow-800,
html.dark .text-yellow-700 {
  color: #fbbf24 !important;
}
html.dark .text-blue-800,
html.dark .text-blue-900 {
  color: #93c5fd !important;
}
html.dark input:not([type="file"]),
html.dark textarea,
html.dark select {
  background-color: #0f172a !important;
  color: #f8fafc !important;
  border-color: #475569 !important;
}
html.dark .border,
html.dark .border-t,
html.dark .border-b,
html.dark .border-gray-200,
html.dark .border-gray-300 {
  border-color: #334155 !important;
}