/* =====================================================================
   ZAMAN Daily Business Dashboard — Design Tokens
   A premium, custom-built lightweight CSS system (no framework bloat)
   for fast loading on shared cPanel hosting.
   ===================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Sora:wght@400;500;600;700;800&family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@500;600&display=swap');

:root {
  /* --- Color: "ledger" palette — navy ink + gold accent, business-native --- */
  --ink-900: #0B1729;
  --ink-800: #10203A;
  --ink-700: #16294A;
  --ink-600: #223760;
  --gold-500: #C9A227;
  --gold-400: #D9B84A;
  --gold-100: #FBF3DC;
  --teal-500: #0E9C94;
  --bg: #F5F7FB;
  --surface: #FFFFFF;
  --surface-alt: #F0F3F9;
  --border: #E4E8F1;
  --text-900: #121826;
  --text-600: #4B5567;
  --text-400: #8792A6;
  --success: #17A34A;
  --danger: #DC2A2A;
  --warning: #C9A227;
  --info: #2563EB;

  /* --- Type --- */
  --font-display: 'Sora', 'Segoe UI', sans-serif;
  --font-body: 'Inter', 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'Courier New', monospace;

  /* --- Radius / shadow / motion --- */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 2px rgba(16, 32, 58, 0.06);
  --shadow-md: 0 8px 24px rgba(16, 32, 58, 0.08);
  --shadow-lg: 0 20px 48px rgba(16, 32, 58, 0.14);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text-900);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  line-height: 1.55;
}

h1, h2, h3, h4 { font-family: var(--font-display); color: var(--ink-900); margin: 0 0 .5em; line-height: 1.2; }
p { margin: 0 0 1em; color: var(--text-600); }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: var(--font-body); cursor: pointer; }

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 24px; }

.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 26px; border-radius: 999px; font-weight: 600; font-size: 15px;
  border: 1px solid transparent; transition: transform .18s var(--ease), box-shadow .18s var(--ease), background .18s var(--ease);
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-gold { background: linear-gradient(135deg, var(--gold-400), var(--gold-500)); color: var(--ink-900); box-shadow: 0 10px 24px rgba(201,162,39,.35); }
.btn-gold:hover { box-shadow: 0 14px 32px rgba(201,162,39,.45); }
.btn-dark { background: var(--ink-900); color: #fff; }
.btn-dark:hover { background: var(--ink-700); }
.btn-outline { background: transparent; color: var(--ink-900); border-color: var(--border); }
.btn-outline:hover { border-color: var(--ink-700); }
.btn-ghost { background: transparent; color: var(--text-600); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-sm { padding: 8px 16px; font-size: 13px; border-radius: 8px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }

/* Cards */
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}
.card-ledger { position: relative; padding-left: 22px; }
.card-ledger::before {
  content: ''; position: absolute; left: 0; top: 14px; bottom: 14px; width: 3px;
  background: linear-gradient(180deg, var(--gold-400), var(--teal-500));
  border-radius: 3px;
}

/* Forms */
label { display: block; font-size: 13px; font-weight: 600; color: var(--text-600); margin-bottom: 6px; }
input[type=text], input[type=number], input[type=date], input[type=password], input[type=tel], input[type=email], select, textarea {
  width: 100%; padding: 11px 14px; border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  font-family: var(--font-body); font-size: 14.5px; color: var(--text-900); background: #fff;
  transition: border-color .15s var(--ease), box-shadow .15s var(--ease);
}
textarea { resize: vertical; min-height: 80px; }
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--teal-500); box-shadow: 0 0 0 4px rgba(14,156,148,.12);
}
.field { margin-bottom: 16px; }
.field-hint { font-size: 12px; color: var(--text-400); margin-top: 4px; }

.radio-group { display: flex; gap: 10px; }
.radio-pill { flex: 1; }
.radio-pill input { position: absolute; opacity: 0; pointer-events: none; }
.radio-pill span {
  display: block; text-align: center; padding: 10px 14px; border: 1.5px solid var(--border);
  border-radius: var(--radius-sm); font-weight: 600; font-size: 13.5px; color: var(--text-600);
  transition: all .15s var(--ease);
}
.radio-pill input:checked + span.yes { background: rgba(23,163,74,.1); border-color: var(--success); color: var(--success); }
.radio-pill input:checked + span.no { background: rgba(220,42,42,.08); border-color: var(--danger); color: var(--danger); }
.radio-pill input:focus-visible + span { box-shadow: 0 0 0 3px rgba(14,156,148,.25); }

.checkbox-row { display: flex; align-items: center; gap: 10px; padding: 10px 4px; border-bottom: 1px solid var(--border); }
.checkbox-row:last-child { border-bottom: none; }
.checkbox-row input { width: 18px; height: 18px; accent-color: var(--teal-500); }

/* Badges */
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.badge-yes { background: rgba(23,163,74,.12); color: var(--success); }
.badge-no { background: rgba(220,42,42,.1); color: var(--danger); }

/* Utility */
.text-muted { color: var(--text-400); }
.text-center { text-align: center; }
.flex { display: flex; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.gap-8 { gap: 8px; } .gap-12 { gap: 12px; } .gap-16 { gap: 16px; }
.mt-8{margin-top:8px;} .mt-16{margin-top:16px;} .mt-24{margin-top:24px;} .mt-32{margin-top:32px;}
.mb-8{margin-bottom:8px;} .mb-16{margin-bottom:16px;} .mb-24{margin-bottom:24px;}

.alert { padding: 14px 18px; border-radius: var(--radius-sm); font-size: 14px; margin-bottom: 20px; display:flex; gap:10px; align-items:flex-start; }
.alert-success { background: rgba(23,163,74,.1); color: #0e6b30; border: 1px solid rgba(23,163,74,.25); }
.alert-error { background: rgba(220,42,42,.08); color: #a01d1d; border: 1px solid rgba(220,42,42,.22); }
.alert-info { background: rgba(37,99,235,.08); color: #1d4ed8; border: 1px solid rgba(37,99,235,.2); }

::selection { background: var(--gold-400); color: var(--ink-900); }
