/* Gaya dasar bersama. Komponen (tabel/modal/toast/kartu) dari easylis-tools memakai utilitas Tailwind. */
:root { --brand-50:#effaf8; --brand-100:#d7f2ee; --brand-500:#2a978d; --brand-600:#1f7a73; --brand-700:#1c625d; --ring:#4bb3a8; }
html { -webkit-tap-highlight-color: transparent; }
body { font-family: Inter, ui-sans-serif, system-ui, sans-serif; background:#f8fafc; color:#334155; font-feature-settings: "cv11"; }
[x-cloak], .cloak { visibility: hidden; }

/* Tombol */
.btn { display:inline-flex; align-items:center; justify-content:center; gap:.5rem; font-weight:600; font-size:.875rem; line-height:1.25rem;
  border-radius:.625rem; padding:.625rem 1rem; transition: background-color .15s, color .15s, box-shadow .15s, opacity .15s; white-space:nowrap; cursor:pointer; border:1px solid transparent; }
.btn:focus-visible { outline:none; box-shadow:0 0 0 3px rgba(75,179,168,.45); }
.btn:disabled, .btn[aria-disabled="true"] { opacity:.55; cursor:not-allowed; }
.btn-utama { background:var(--brand-600); color:#fff; }
.btn-utama:hover:not(:disabled) { background:var(--brand-700); }
.btn-sekunder { background:#fff; color:#334155; border-color:#e2e8f0; }
.btn-sekunder:hover:not(:disabled) { background:#f8fafc; border-color:#cbd5e1; }
.btn-hantu { background:transparent; color:#475569; }
.btn-hantu:hover:not(:disabled) { background:#f1f5f9; }
.btn-bahaya { background:#e11d48; color:#fff; }
.btn-bahaya:hover:not(:disabled) { background:#be123c; }
.btn-sm { padding:.375rem .75rem; font-size:.8125rem; border-radius:.5rem; }
.btn-lg { padding:.875rem 1.25rem; font-size:1rem; border-radius:.75rem; }
.btn .fa-spinner { animation: fa-spin 1s linear infinite; }

/* Form */
.label { display:block; font-size:.8125rem; font-weight:500; color:#334155; margin-bottom:.375rem; }
.label .wajib { color:#e11d48; margin-left:.125rem; }
.input { width:100%; border:1px solid #e2e8f0; background:#fff; border-radius:.625rem; padding:.625rem .75rem; font-size:.9375rem; color:#0f172a;
  transition: border-color .15s, box-shadow .15s; }
.input::placeholder { color:#94a3b8; }
.input:focus { outline:none; border-color:var(--ring); box-shadow:0 0 0 3px rgba(75,179,168,.25); }
.input[aria-invalid="true"] { border-color:#fb7185; box-shadow:0 0 0 3px rgba(251,113,133,.15); }
.input:disabled { background:#f8fafc; color:#64748b; }
select.input { appearance:none; background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%2364748b'%3E%3Cpath d='M5.5 7.5 10 12l4.5-4.5'/%3E%3C/svg%3E");
  background-repeat:no-repeat; background-position:right .6rem center; background-size:1.1rem; padding-right:2.25rem; }
.bantuan { font-size:.75rem; color:#64748b; margin-top:.375rem; }
.galat-field { font-size:.75rem; color:#e11d48; margin-top:.375rem; display:flex; gap:.375rem; align-items:flex-start; }
@media (min-width: 768px) { .input { font-size:.875rem; } }

/* Kartu & lain-lain */
.kartu { background:#fff; border:1px solid #e2e8f0; border-radius:1rem; box-shadow:0 1px 2px rgba(15,23,42,.04); }
.skeleton { background:linear-gradient(90deg,#f1f5f9 25%,#e2e8f0 37%,#f1f5f9 63%); background-size:400% 100%; animation: kilau 1.3s ease infinite; border-radius:.5rem; }
@keyframes kilau { 0% { background-position:100% 50%; } 100% { background-position:0 50%; } }
.fade-in { animation: muncul .25s ease both; }
@keyframes muncul { from { opacity:0; transform:translateY(4px); } to { opacity:1; transform:none; } }
.prose-lppk p { margin:.5rem 0; } .prose-lppk ul { list-style:disc; padding-left:1.25rem; margin:.5rem 0; } .prose-lppk ol { list-style:decimal; padding-left:1.25rem; }
.prose-lppk b, .prose-lppk strong { color:#0f172a; } .prose-lppk a { color:var(--brand-600); text-decoration:underline; }
.scroll-tipis::-webkit-scrollbar { width:8px; height:8px; } .scroll-tipis::-webkit-scrollbar-thumb { background:#cbd5e1; border-radius:8px; }
.aman-bawah { padding-bottom: env(safe-area-inset-bottom); }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration:.01ms !important; transition-duration:.01ms !important; } }
