/* Patungan dashboard theme: mengganti skala warna brand (default #465fff)
   dengan warna logo patungan.id. Tailwind membaca variabel ini, jadi seluruh
   tombol, tautan, dan aksen ikut berubah tanpa mengubah kelas di bundle. */

:root {
  --color-brand-50: #e6f6fc;
  --color-brand-100: #cdeefa;
  --color-brand-200: #9bdcf3;
  --color-brand-300: #6cc9ea;
  --color-brand-400: #29abe2;
  --color-brand-500: #2596be;
  --color-brand-600: #1a7fa3;
  --color-brand-700: #17688a;
  --color-brand-800: #155470;
  --color-brand-900: #144460;
  --color-brand-950: #0c2b3d;
  --pt-green: #8cc63f;
}

/* Fokus dan pilihan aktif memakai biru logo */
input:focus, select:focus, textarea:focus {
  border-color: var(--color-brand-400) !important;
  box-shadow: 0 0 0 3px rgba(41, 171, 226, .18) !important;
}
::selection { background: rgba(41, 171, 226, .28); }

/* Sedikit lebih lembut di kartu dan tombol */
button { transition: transform .15s ease, background-color .2s ease, box-shadow .2s ease; }
button:not(:disabled):active { transform: scale(.97); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ===== Lebih ramah: mobile ===== */
@media (max-width: 767px) {
  /* Area sentuh minimal 44px */
  button, a, [role="button"] { min-height: 44px; }
  /* Input 16px agar iOS tidak memperbesar layar saat diketik */
  input, select, textarea { font-size: 16px; border-radius: 12px; }
}

/* ===== Lebih ramah: desktop ===== */
@media (min-width: 768px) {
  input, select, textarea { border-radius: 12px; }
  a { transition: color .2s ease; }
}

/* Input yang difokus memakai cincin biru yang lembut */
input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px rgba(41, 171, 226, .18);
}
