:root {
  --color-primary: #0F172A;
  --color-on-primary: #FFFFFF;
  --color-secondary: #334155;
  --color-accent: #0369A1;
  --color-background: #F8FAFC;
  --color-foreground: #020617;
  --color-muted: #E8ECF1;
  --color-border: #E2E8F0;
  --color-destructive: #DC2626;
  --color-ring: #0F172A;
}

[data-theme="dark"] {
  --color-primary: #E2E8F0;
  --color-on-primary: #0F172A;
  --color-secondary: #94A3B8;
  --color-accent: #38BDF8;
  --color-background: #0B1220;
  --color-foreground: #F1F5F9;
  --color-muted: #1E293B;
  --color-border: #1E293B;
  --color-destructive: #F87171;
  --color-ring: #38BDF8;
}

body {
  background-color: var(--color-background);
}

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

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

/* Slim, theme-aware scrollbar for the conversation panel */
.overflow-y-auto::-webkit-scrollbar {
  width: 8px;
}
.overflow-y-auto::-webkit-scrollbar-thumb {
  background-color: var(--color-border);
  border-radius: 9999px;
}

/* Cetak modal drill-down overview: sembunyikan sidebar + konten halaman
   ([data-dashboard-content]), sisain cuma modal ([data-print-root]).
   Kelas .detail-modal-open di-toggle reaktif lewat x-effect di overview.ejs,
   ngikutin state `open` komponen Alpine — gak nyentuh print halaman lain. */
@media print {
  body.detail-modal-open > aside,
  body.detail-modal-open > header {
    display: none !important;
  }
  body.detail-modal-open [data-dashboard-content] {
    display: none !important;
  }
}
