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

:root {
  --primary: #F26322; --primary-hover: #D8541A; --primary-active: #B8450F; --primary-soft: #FEF0E9;
  --navy: #06303F; --navy-2: #0B4560; --navy-soft: #E8F1F5;
  --ink: #06303F; --ink-soft: #0B4560; --muted: #587080; --line: #DFE7EC; --line-soft: #EEF3F6;
  --bg-body: #F5F8FA; --bg-card: #FFFFFF;
  --green: #16A34A; --green-bg: #E9F7EE; --orange: #D97D06; --orange-bg: #FDF4E6;
  --red: #DC4B4F; --red-bg: #FCEEEE; --cyan: #1B8FE3; --cyan-bg: #E9F4FD;
  --radius: 10px; --radius-lg: 16px;
  --shadow: 0 1px 2px rgba(18,22,27,.06), 0 4px 16px rgba(18,22,27,.06);
  --font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font-family: var(--font); color: var(--ink); background: var(--bg-body); font-size: 15px; line-height: 1.55; }
a { color: var(--primary); }
h1, h2, h3 { line-height: 1.25; margin: 0 0 .5em; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.hidden { display: none !important; }

/* Tombol & input */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--line); background: #fff; color: var(--ink);
  font: 600 14px var(--font); padding: 10px 16px; border-radius: var(--radius); cursor: pointer; text-decoration: none; transition: background .15s, border-color .15s, transform .05s; }
.btn:hover { border-color: #CDD1D7; background: var(--line-soft); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid rgba(242,99,34,.35); outline-offset: 1px; }
.btn-primary { background: var(--primary); border-color: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-hover); border-color: var(--primary-hover); }
.btn-primary:active { background: var(--primary-active); }
.btn-dark { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--ink-soft); }
.btn-danger { color: var(--red); border-color: #F2C5C6; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.btn-block { width: 100%; }
label { display: block; font-weight: 600; font-size: 13px; margin: 0 0 6px; }
input, select, textarea { width: 100%; font: 15px var(--font); padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; color: var(--ink); }
.field { margin-bottom: 14px; }
.error { color: var(--red); font-size: 14px; min-height: 20px; }

/* Kartu & badge */
.card { background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 24px; }
.badge { display: inline-block; font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: var(--line-soft); color: var(--muted); white-space: nowrap; }
.badge.green { background: var(--green-bg); color: var(--green); }
.badge.orange { background: var(--orange-bg); color: var(--orange); }
.badge.red { background: var(--red-bg); color: var(--red); }
.badge.cyan { background: var(--cyan-bg); color: var(--cyan); }
.badge.brand { background: var(--primary-soft); color: var(--primary-active); }

/* Konten soal dari HTML tes */
.content table { width: 100%; border-collapse: collapse; margin: 8px 0 12px; font-size: 14px; }
.content th, .content td { border: 1px solid var(--line); padding: 6px 9px; text-align: left; vertical-align: top; }
.content th { background: var(--line-soft); font-weight: 700; }
.content td.r, .content th.r { text-align: right; white-space: nowrap; }
.content ol, .content ul { padding-left: 20px; }
.content li { margin-bottom: 4px; }
.content .ask { background: var(--primary-soft); border-left: 3px solid var(--primary); padding: 10px 12px; border-radius: 6px; margin: 8px 0; }
.content .note { color: var(--muted); }

/* Modal & toast */
.overlay { position: fixed; inset: 0; background: rgba(18,22,27,.55); display: flex; align-items: center; justify-content: center; z-index: 50; padding: 16px; }
.modal { background: #fff; border-radius: var(--radius-lg); max-width: 520px; width: 100%; padding: 24px; box-shadow: 0 20px 60px rgba(0,0,0,.25); }
.modal h3 { margin-top: 0; }
.modal .actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 18px; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 12px 18px; border-radius: var(--radius);
  font-weight: 600; font-size: 14px; z-index: 60; box-shadow: var(--shadow); max-width: 90vw; }
.toast.warn { background: var(--red); }

/* Tabel data */
table.data { width: 100%; border-collapse: collapse; font-size: 14px; }
table.data th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-weight: 700; padding: 10px; border-bottom: 1px solid var(--line); }
table.data td { padding: 11px 10px; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
table.data tr.clickable { cursor: pointer; }
table.data tr.clickable:hover td { background: var(--line-soft); }
input[type="checkbox"], input[type="radio"] { width: auto; }
.rubric .check { align-items: center; padding: 10px 12px; white-space: nowrap; }
