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

:root {
  --teal-900: #0A3D33;
  --teal-700: #0F5B4C;
  --teal-500: #4C9A7C;
  --teal-100: #E1EFE9;
  --cream: #FAF6EE;
  --cream-card: #FFFFFF;
  --gold: #D9A441;
  --gold-light: #FBEFD6;
  --red: #C24B3F;
  --red-light: #FBE7E4;
  --ink: #1F2A27;
  --ink-soft: #5B6864;
  --radius: 16px;
  --shadow: 0 2px 12px rgba(15, 91, 76, 0.08);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  -webkit-tap-highlight-color: transparent;
}

body {
  min-height: 100vh;
  padding-bottom: 32px;
}

.app-shell {
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  background: var(--cream);
}

header.top {
  background: var(--teal-700);
  color: #fff;
  padding: 22px 20px 20px;
  border-radius: 0 0 24px 24px;
}

header.top .eyebrow {
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.75;
  margin: 0 0 4px;
}

header.top h1 {
  margin: 0;
  font-size: 20px;
  font-weight: 800;
}

header.top .sub {
  margin: 4px 0 0;
  font-size: 13px;
  opacity: 0.85;
}

main {
  padding: 18px 16px 8px;
}

.card {
  background: var(--cream-card);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
  margin-bottom: 14px;
}

.card h2 {
  margin: 0 0 12px;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.status-card {
  text-align: center;
  padding: 24px 18px;
}

.status-card .amount {
  font-size: 34px;
  font-weight: 800;
  color: var(--teal-900);
  margin: 6px 0;
}

.badge {
  display: inline-block;
  padding: 5px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.badge.lunas { background: var(--teal-100); color: var(--teal-700); }
.badge.belum { background: var(--red-light); color: var(--red); }
.badge.gold { background: var(--gold-light); color: #8a6417; }

.list-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 11px 0;
  border-bottom: 1px solid #F0EBE0;
  font-size: 14px;
}

.list-row:last-child { border-bottom: none; }

.list-row .label { font-weight: 600; }
.list-row .meta { color: var(--ink-soft); font-size: 12px; margin-top: 2px; }
.list-row .value { font-weight: 700; }

.kas-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 4px;
}

.kas-box {
  background: var(--teal-100);
  border-radius: 12px;
  padding: 12px;
  text-align: center;
}

.kas-box.out { background: var(--red-light); }

.kas-box .kas-label { font-size: 11px; color: var(--ink-soft); text-transform: uppercase; letter-spacing: 0.03em; }
.kas-box .kas-value { font-size: 16px; font-weight: 800; margin-top: 4px; color: var(--teal-900); }
.kas-box.out .kas-value { color: var(--red); }

.saldo-line {
  text-align: center;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed #DDD3BE;
}

.saldo-line .kas-value { font-size: 24px; }

button, .btn {
  width: 100%;
  border: none;
  border-radius: 12px;
  padding: 14px;
  font-size: 15px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  background: var(--teal-700);
  color: #fff;
  transition: transform 0.06s ease, background 0.15s ease;
}

button:active { transform: scale(0.98); }
button.secondary { background: var(--teal-100); color: var(--teal-900); }
button.danger { background: var(--red-light); color: var(--red); }
button:disabled { opacity: 0.5; cursor: default; }

input[type=text], input[type=password], input[type=number], input[type=date], select, textarea {
  width: 100%;
  padding: 13px;
  border-radius: 12px;
  border: 1.5px solid #E4DCC8;
  font-size: 15px;
  font-family: inherit;
  background: #fff;
  margin-bottom: 10px;
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--teal-500);
}

label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-soft);
  margin-bottom: 6px;
}

.error-msg {
  background: var(--red-light);
  color: var(--red);
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 13px;
  margin-bottom: 12px;
}

.empty {
  text-align: center;
  color: var(--ink-soft);
  font-size: 13px;
  padding: 24px 0;
}

.bukti-link {
  font-size: 12px;
  color: var(--teal-700);
  text-decoration: none;
  font-weight: 700;
}

.tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 14px;
  overflow-x: auto;
}

.tab-btn {
  flex: none;
  width: auto;
  padding: 9px 16px;
  border-radius: 999px;
  background: var(--teal-100);
  color: var(--teal-900);
  font-size: 13px;
}

.tab-btn.active { background: var(--teal-700); color: #fff; }

.hidden { display: none !important; }

.link-btn {
  background: none;
  color: var(--teal-700);
  width: auto;
  padding: 8px 0;
  font-size: 13px;
  text-decoration: underline;
}

.spinner {
  text-align: center;
  padding: 40px 0;
  color: var(--ink-soft);
  font-size: 14px;
}
