/* =========================================================
   styles.css — Static utility CSS (Tailwind CDN replacement)
   Dibuat khusus untuk index.html CAT ELANG TIDAR KEDINASAN.
   Tidak butuh koneksi internet / build step apapun.
   ========================================================= */

/* ---------- Font self-hosted (pengganti Google Fonts CDN) ---------- */
@font-face {
  font-family: "AppSans";
  src: url("fonts/LiberationSans-Regular.ttf") format("truetype");
  font-weight: 400 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "AppSans";
  src: url("fonts/LiberationSans-Bold.ttf") format("truetype");
  font-weight: 600 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "AppMono";
  src: url("fonts/DejaVuSansMono.ttf") format("truetype");
  font-weight: 400 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "AppMono";
  src: url("fonts/DejaVuSansMono-Bold.ttf") format("truetype");
  font-weight: 600 800;
  font-style: normal;
  font-display: swap;
}

/* ---------- Reset dasar ---------- */
*, *::before, *::after { box-sizing: border-box; border-width: 0; border-style: solid; border-color: #e5e7eb; }
html, body { margin: 0; padding: 0; }
button { font: inherit; color: inherit; background: none; padding: 0; cursor: pointer; }
input { font: inherit; }
svg { display: block; }
img { max-width: 100%; display: block; }

/* ---------- Layout: display ---------- */
.flex { display: flex; }
.hidden { display: none !important; }
.grid { display: grid; }

/* ---------- Flex direction / wrap ---------- */
.flex-col { flex-direction: column; }
.flex-1 { flex: 1 1 0%; }
.shrink-0 { flex-shrink: 0; }

/* ---------- Alignment ---------- */
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.items-end { align-items: flex-end; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }

/* ---------- Position ---------- */
.fixed { position: fixed; }
.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }
.z-50 { z-index: 50; }

/* ---------- Sizing ---------- */
.h-screen { height: 100vh; }
.w-screen { width: 100vw; }
.w-full { width: 100%; }
.max-w-sm { max-width: 24rem; }
.min-w-0 { min-width: 0; }
.min-h-0 { min-height: 0; }
.max-h-\[40vh\] { max-height: 40vh; }

.h-2 { height: 0.5rem; }
.w-2 { width: 0.5rem; }
.h-2\.5 { height: 0.625rem; }
.w-2\.5 { width: 0.625rem; }
.h-3\.5 { height: 0.875rem; }
.w-3\.5 { width: 0.875rem; }
.h-4 { height: 1rem; }
.w-4 { width: 1rem; }
.h-6 { height: 1.5rem; }
.w-6 { width: 1.5rem; }
.h-7 { height: 1.75rem; }
.w-7 { width: 1.75rem; }
.h-8 { height: 2rem; }
.w-8 { width: 2rem; }
.h-11 { height: 2.75rem; }
.w-11 { width: 2.75rem; }
.h-12 { height: 3rem; }
.w-12 { width: 3rem; }

/* ---------- Spacing: padding ---------- */
.p-3 { padding: 0.75rem; }
.p-4 { padding: 1rem; }
.p-6 { padding: 1.5rem; }
.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.px-3\.5 { padding-left: 0.875rem; padding-right: 0.875rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-5 { padding-left: 1.25rem; padding-right: 1.25rem; }
.py-1\.5 { padding-top: 0.375rem; padding-bottom: 0.375rem; }
.py-2\.5 { padding-top: 0.625rem; padding-bottom: 0.625rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.pt-1 { padding-top: 0.25rem; }

/* ---------- Spacing: margin ---------- */
.mb-1 { margin-bottom: 0.25rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-5 { margin-bottom: 1.25rem; }
.mt-0\.5 { margin-top: 0.125rem; }
.mt-2 { margin-top: 0.5rem; }
.mr-4 { margin-right: 1rem; }

/* ---------- Gap ---------- */
.gap-1 { gap: 0.25rem; }
.gap-1\.5 { gap: 0.375rem; }
.gap-2 { gap: 0.5rem; }
.gap-2\.5 { gap: 0.625rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }

/* space-y (vertical stacking gap) */
.space-y-2\.5 > * + * { margin-top: 0.625rem; }

/* ---------- Border radius ---------- */
.rounded-sm { border-radius: 0.125rem; }
.rounded-md { border-radius: 0.375rem; }
.rounded-lg { border-radius: 0.5rem; }
.rounded-xl { border-radius: 0.75rem; }
.rounded-full { border-radius: 9999px; }

/* ---------- Borders ---------- */
.border { border-width: 1px; }
.border-2 { border-width: 2px; }
.border-t { border-top-width: 1px; }
.border-b { border-bottom-width: 1px; }
.border-slate-100 { border-color: #f1f5f9; }
.border-slate-200 { border-color: #e2e8f0; }
.border-slate-300 { border-color: #cbd5e1; }
.border-amber-300 { border-color: #fcd34d; }

/* ---------- Backgrounds ---------- */
.bg-white { background-color: #ffffff; }
.bg-slate-300 { background-color: #cbd5e1; }
.bg-red-50 { background-color: #fef2f2; }
.bg-red-600 { background-color: #dc2626; }
.bg-\[var\(--navy-800\)\] { background-color: var(--navy-800); }

.hover\:bg-red-700:hover { background-color: #b91c1c; }
.hover\:bg-slate-50:hover { background-color: #f8fafc; }
.hover\:bg-amber-50:hover { background-color: #fffbeb; }
.hover\:bg-\[var\(--navy-700\)\]:hover { background-color: var(--navy-700); }

/* ---------- Text color ---------- */
.text-white { color: #ffffff; }
.text-slate-400 { color: #94a3b8; }
.text-slate-500 { color: #64748b; }
.text-slate-600 { color: #475569; }
.text-slate-700 { color: #334155; }
.text-slate-800 { color: #1e293b; }
.text-amber-600 { color: #d97706; }
.text-green-700 { color: #15803d; }
.text-red-600 { color: #dc2626; }
.text-blue-200 { color: #bfdbfe; }
.text-blue-200\/70 { color: rgba(191, 219, 254, 0.7); }
.text-blue-200\/80 { color: rgba(191, 219, 254, 0.8); }

/* ---------- Ring ---------- */
.ring-2 { box-shadow: 0 0 0 2px var(--tw-ring-color, rgba(255,255,255,0.3)); }
.ring-white\/30 { --tw-ring-color: rgba(255, 255, 255, 0.3); }

/* ---------- Shadow ---------- */
.shadow-sm { box-shadow: 0 1px 2px 0 rgba(0,0,0,0.05); }
.shadow-md { box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1); }
.shadow-lg { box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1); }
.shadow-2xl { box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25); }

/* ---------- Typography ---------- */
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.font-extrabold { font-weight: 800; }

.text-xs { font-size: 0.75rem; line-height: 1rem; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-base { font-size: 1rem; line-height: 1.5rem; }
.text-\[9px\] { font-size: 9px; }
.text-\[10px\] { font-size: 10px; }
.text-\[11px\] { font-size: 11px; }
.text-\[15px\] { font-size: 15px; }

.leading-none { line-height: 1; }
.leading-tight { line-height: 1.25; }
.leading-relaxed { line-height: 1.625; }

.tracking-wide { letter-spacing: 0.025em; }
.tracking-wider { letter-spacing: 0.05em; }

.text-right { text-align: right; }
.uppercase { text-transform: uppercase; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- Overflow ---------- */
.overflow-hidden { overflow: hidden; }
.overflow-y-auto { overflow-y: auto; }

/* ---------- Misc ---------- */
.cursor-pointer { cursor: pointer; }
.transition { transition-property: color, background-color, border-color, box-shadow, transform, opacity; transition-duration: 150ms; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); }

/* ---------- Responsive: sm (>=640px) ---------- */
@media (min-width: 640px) {
  .sm\:inline { display: inline; }
  .sm\:flex { display: flex; }
}

/* ---------- Responsive: md (>=768px) ---------- */
@media (min-width: 768px) {
  .md\:flex { display: flex; }
}

/* ---------- Responsive: lg (>=1024px) ---------- */
@media (min-width: 1024px) {
  .lg\:flex-row { flex-direction: row; }
  .lg\:max-h-none { max-height: none; }
  .lg\:p-4 { padding: 1rem; }
  .lg\:px-5 { padding-left: 1.25rem; padding-right: 1.25rem; }
  .lg\:px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
  .lg\:text-base { font-size: 1rem; line-height: 1.5rem; }
  .lg\:text-sm { font-size: 0.875rem; line-height: 1.25rem; }
  .lg\:text-xs { font-size: 0.75rem; line-height: 1rem; }
  .lg\:w-\[300px\] { width: 300px; }
}
