/* assets/css/app.css - Global Design System */
:root {
  --primary-color: #2563eb;
  --primary-hover: #1d4ed8;
  --primary-light: #eff6ff;
  --primary-ring: rgba(37, 99, 235, 0.25);
  --font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --transition-speed: 0.15s;
  --sidebar-width: 260px;
}

/* Reduced / disabled animation override for ultra speed if configured */
body[data-animations="off"] * {
  animation: none !important;
  transition: none !important;
}

body[data-animations="fast"] * {
  transition-duration: 0.1s !important;
}

* {
  box-sizing: border-box;
}

body {
  font-family: var(--font-family);
  color: #1e293b;
  background-color: #f8fafc;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
}

/* Authentic Indonesian License Plate UI Component */
.plate-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: #111827;
  color: #ffffff;
  border: 2px solid #374151;
  border-radius: 8px;
  padding: 4px 14px;
  font-family: 'Courier New', Courier, monospace, sans-serif;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  position: relative;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

/* Plat Hitam (Kendaraan Standar / Default) */
.plate-badge.plate-black,
.plate-badge-black {
  background: #111827 !important;
  color: #ffffff !important;
  border: 2px solid #374151 !important;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

/* Plat Merah (Rumah Tinggal Pokok / Utama) */
.plate-badge.plate-red,
.plate-badge-red {
  background: #dc2626 !important; /* Merah menyala */
  color: #ffffff !important;
  border: 2px solid #fca5a5 !important; /* Border merah muda */
  box-shadow: 0 3px 8px rgba(220, 38, 38, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.7);
}

/* Plat Biru (Usaha / Kantor Bekerja) */
.plate-badge.plate-blue,
.plate-badge-blue {
  background: #1d4ed8 !important; /* Biru elektrik */
  color: #ffffff !important;
  border: 2px solid #93c5fd !important; /* Border biru muda */
  box-shadow: 0 3px 8px rgba(29, 78, 216, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.7);
}

/* Plat Hijau (Sering Berkunjung) */
.plate-badge.plate-green,
.plate-badge-green {
  background: #059669 !important; /* Hijau emerald */
  color: #ffffff !important;
  border: 2px solid #6ee7b7 !important; /* Border hijau muda */
  box-shadow: 0 3px 8px rgba(5, 150, 105, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.7);
}

.plate-badge.lg {
  font-size: 1.5rem;
  padding: 8px 24px;
  border-width: 3px;
  border-radius: 10px;
}

.plate-badge.sm {
  font-size: 0.85rem;
  padding: 2px 8px;
  letter-spacing: 1px;
}

.plate-badge::after {
  content: '';
  position: absolute;
  bottom: 3px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 16px);
  height: 1px;
  background: rgba(255, 255, 255, 0.2);
}

/* Primary color utilities */
.bg-primary { background-color: var(--primary-color) !important; }
.text-primary { color: var(--primary-color) !important; }
.border-primary { border-color: var(--primary-color) !important; }
.hover\:bg-primary-hover:hover { background-color: var(--primary-hover) !important; }

/* Quick Action & Stat Cards */
.card-stat {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 1.25rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
}

.card-stat:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}

/* Mobile responsive fixes */
html, body {
  overflow-x: hidden;
  max-width: 100vw;
}

@media (max-width: 768px) {
  .card-stat {
    padding: 1rem;
  }
  .hide-on-mobile {
    display: none !important;
  }
}
