/* =========================================================
   css/base.css — Warna (tokens), reset, butang, borang
   ========================================================= */
:root {
  --navy-900: #071a3a;
  --navy-800: #0b2a5b;
  --navy-700: #12397a;
  --blue-600: #1e4fa3;
  --blue-500: #2f66c7;
  --blue-100: #e6eefb;
  --blue-50:  #f3f7fd;

  --gold-600: #a8841a;
  --gold-500: #c9a227;
  --gold-400: #ddb94a;
  --gold-100: #f8f0d6;

  --ink:      #14213d;
  --ink-2:    #4a5672;
  --ink-3:    #8892a8;
  --line:     #e2e7f0;
  --bg:       #f4f6fb;
  --card:     #ffffff;

  --ok: #1f8a5b;   --ok-bg: #e3f5ec;
  --warn: #b7791f; --warn-bg: #fdf3dc;
  --danger: #c0392b; --danger-bg: #fbe7e5;
  --info: var(--blue-600); --info-bg: var(--blue-100);

  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 1px 2px rgba(11, 42, 91, .06), 0 6px 20px rgba(11, 42, 91, .06);
  --sidebar-w: 256px;
  --font: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; }
body {
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { margin: 0 0 .4em; line-height: 1.25; color: var(--navy-800); }
p { margin: 0 0 .8em; }
a { color: var(--blue-600); }
small { color: var(--ink-3); }

/* ---------------- Buttons ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4em;
  padding: .62em 1.15em;
  border: 1px solid transparent; border-radius: var(--radius-sm);
  font: inherit; font-weight: 600; cursor: pointer;
  transition: background .15s, box-shadow .15s, transform .05s;
  text-decoration: none; white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn:focus-visible, .icon-btn:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid rgba(201, 162, 39, .45); outline-offset: 1px;
}
.btn-primary { background: var(--blue-600); color: #fff; }
.btn-primary:hover { background: var(--navy-700); }
.btn-gold { background: linear-gradient(135deg, var(--gold-400), var(--gold-500)); color: var(--navy-900); }
.btn-gold:hover { background: var(--gold-500); box-shadow: 0 4px 14px rgba(201, 162, 39, .35); }
.btn-ghost { background: #fff; color: var(--navy-800); border-color: var(--line); }
.btn-ghost:hover { background: var(--blue-50); }
.btn-ghost-light { background: rgba(255,255,255,.06); color: #dbe5f7; border-color: rgba(255,255,255,.14); }
.btn-ghost-light:hover { background: rgba(255,255,255,.12); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: #a03024; }
.btn-sm { padding: .38em .75em; font-size: .86em; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }

.icon-btn {
  border: 0; background: transparent; cursor: pointer;
  font-size: 1.4rem; line-height: 1; color: var(--ink-2);
  width: 38px; height: 38px; border-radius: 9px;
}
.icon-btn:hover { background: var(--blue-50); }

/* ---------------- Forms ---------------- */
.field { display: block; margin-bottom: .85rem; }
.field > span { display: block; font-size: .85rem; font-weight: 600; color: var(--ink-2); margin-bottom: .3rem; }
input, select, textarea {
  width: 100%; font: inherit; color: var(--ink);
  padding: .6em .8em; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  transition: border-color .15s;
}
input:focus, select:focus, textarea:focus { border-color: var(--gold-500); }
textarea { min-height: 84px; resize: vertical; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 .9rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 .9rem; }
.form-error { color: var(--danger); font-size: .9rem; min-height: 1.2em; margin: .2rem 0 .7rem; }
.hint { font-size: .85rem; color: var(--ink-2); background: var(--gold-100);
  border-left: 3px solid var(--gold-500); padding: .55rem .75rem; border-radius: 6px; margin-top: 1rem; }
