/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background: #f4f1ec;
  color: #1a1a1a;
  min-height: 100vh;
  font-size: 15px;
}

/* ===== NAVBAR ===== */
.navbar {
  background: #fff;
  border-bottom: 1px solid #e8e3da;
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav-inner {
  width: 100%;
  padding: 0 2.5rem;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-brand { display: flex; align-items: center; gap: 10px; }
.nav-emblem {
  width: 36px; height: 36px;
  background: #1a4a6b;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: white;
}
.brand-name { font-size: 14px; font-weight: 600; color: #1a1a1a; line-height: 1.2; }
.brand-sub { font-size: 11px; color: #888; }
.nav-link {
  font-size: 13px;
  color: #1a4a6b;
  text-decoration: none;
  padding: 6px 14px;
  border: 1px solid #1a4a6b;
  border-radius: 20px;
  transition: all 0.2s;
}
.nav-link:hover { background: #1a4a6b; color: white; }

/* ===== MAIN / HERO ===== */
.main-wrap {
  max-width: 860px;
  margin: 0 auto;
  padding: 3rem 2rem 4rem;
}
.hero { text-align: center; margin-bottom: 2.5rem; }
.hero-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #1a4a6b;
  background: #e8f0f8;
  padding: 4px 14px;
  border-radius: 20px;
  margin-bottom: 1rem;
}
.hero-title {
  font-family: 'Fraunces', serif;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 600;
  color: #1a1a1a;
  line-height: 1.2;
  margin-bottom: 1rem;
}
.hero-title em {
  font-style: italic;
  color: #1a4a6b;
}
.hero-desc {
  font-size: 15px;
  color: #666;
  line-height: 1.7;
  max-width: 480px;
  margin: 0 auto;
}

/* ===== FORM CARD ===== */
.form-card {
  background: #fff;
  border-radius: 16px;
  border: 1px solid #e8e3da;
  padding: 2rem;
  margin-bottom: 2rem;
}
.form-steps {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #f0ece5;
}
.step {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: #aaa;
}
.step.active { color: #1a4a6b; }
.step-num {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: #f0ece5;
  color: #aaa;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 600;
  transition: all 0.2s;
}
.step.active .step-num { background: #1a4a6b; color: white; }
.step-line {
  flex: 1;
  height: 1px;
  background: #e8e3da;
  margin: 0 12px;
}

.form-step.hidden { display: none; }

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }

.field-group { margin-bottom: 1.1rem; }
.field-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #555;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.req { color: #c0392b; }
.field-input {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid #e0dbd2;
  border-radius: 10px;
  font-size: 14px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  color: #1a1a1a;
  background: #fafaf8;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}
.field-input:focus {
  border-color: #1a4a6b;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(26,74,107,0.1);
}
.field-input.error { border-color: #c0392b; }
.field-textarea {
  resize: vertical;
  min-height: 110px;
  line-height: 1.6;
}
select.field-input { cursor: pointer; }
.field-err { font-size: 11px; color: #c0392b; display: block; margin-top: 4px; min-height: 16px; }

.btn-row { display: flex; justify-content: flex-end; margin-top: 1.5rem; }
.btn-next {
  background: #1a4a6b;
  color: white;
  border: none;
  padding: 12px 28px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  font-family: 'Plus Jakarta Sans', sans-serif;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
}
.btn-next:hover { background: #153d5a; }
.btn-next:active { transform: scale(0.98); }
.btn-back {
  background: transparent;
  color: #888;
  border: 1.5px solid #e0dbd2;
  padding: 12px 24px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  font-family: 'Plus Jakarta Sans', sans-serif;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-back:hover { border-color: #aaa; color: #555; }
.btn-submit {
  background: #1a4a6b;
  color: white;
  border: none;
  padding: 12px 32px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  font-family: 'Plus Jakarta Sans', sans-serif;
  cursor: pointer;
  transition: background 0.2s;
}
.btn-submit:hover { background: #153d5a; }
.btn-submit:disabled { background: #a0b4c3; cursor: not-allowed; }

/* ===== SUCCESS ===== */
.success-card {
  background: #fff;
  border-radius: 16px;
  border: 1px solid #e8e3da;
  padding: 3rem 2rem;
  text-align: center;
  margin-bottom: 2rem;
}
.success-card.hidden { display: none; }
.success-icon {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: #e8f5ee;
  color: #2ecc71;
  font-size: 28px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1.25rem;
}
.success-title { font-family: 'Fraunces', serif; font-size: 1.8rem; font-weight: 600; margin-bottom: 0.5rem; }
.success-desc { color: #777; font-size: 14px; }
.ref-badge {
  display: inline-block;
  background: #1a4a6b;
  color: white;
  font-size: 1.5rem;
  font-weight: 600;
  padding: 10px 30px;
  border-radius: 10px;
  margin: 1rem 0;
  letter-spacing: 0.08em;
}
.success-note { color: #999; font-size: 13px; max-width: 360px; margin: 0 auto; line-height: 1.6; }

/* ===== INFO ROW ===== */
.info-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
@media (max-width: 600px) { .info-row { grid-template-columns: 1fr; } }
.info-card {
  background: #fff;
  border: 1px solid #e8e3da;
  border-radius: 12px;
  padding: 1.1rem;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.info-icon { font-size: 20px; flex-shrink: 0; }
.info-text { display: flex; flex-direction: column; gap: 3px; }
.info-text strong { font-size: 13px; font-weight: 600; }
.info-text span { font-size: 12px; color: #777; line-height: 1.4; }

/* ===== FOOTER ===== */
.footer {
  text-align: center;
  padding: 1.5rem;
  font-size: 12px;
  color: #aaa;
  border-top: 1px solid #e8e3da;
  background: #fff;
}

/* ===== DASHBOARD ===== */
.dash-body { background: #f4f1ec; }
.dash-wrap {
  width: 100%;
  padding: 2rem 2.5rem 4rem;
}
.dash-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}
.dash-title {
  font-family: 'Fraunces', serif;
  font-size: 1.6rem;
  font-weight: 600;
  color: #1a1a1a;
}
.dash-date { font-size: 13px; color: #888; }

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 14px;
  margin-bottom: 1.5rem;
}
@media (max-width: 680px) { .stats-grid { grid-template-columns: repeat(2,1fr); } }

.stat-card {
  background: #fff;
  border-radius: 14px;
  border: 1px solid #e8e3da;
  padding: 1.25rem;
}
.stat-label { font-size: 12px; color: #888; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 8px; }
.stat-val { font-size: 2.2rem; font-weight: 600; color: #1a1a1a; }
.stat-total { border-top: 3px solid #1a4a6b; }
.stat-pending { border-top: 3px solid #e74c3c; }
.stat-proses { border-top: 3px solid #f39c12; }
.stat-selesai { border-top: 3px solid #27ae60; }

.chart-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 14px;
  margin-bottom: 1.5rem;
}
@media (max-width: 960px) { .chart-row { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .chart-row { grid-template-columns: 1fr; } }
.chart-card {
  background: #fff;
  border-radius: 14px;
  border: 1px solid #e8e3da;
  padding: 1.25rem;
}
.chart-title {
  font-size: 13px;
  font-weight: 600;
  color: #555;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.table-card {
  background: #fff;
  border-radius: 14px;
  border: 1px solid #e8e3da;
  overflow: hidden;
}
.table-top {
  padding: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  border-bottom: 1px solid #f0ece5;
}
.table-title { font-size: 14px; font-weight: 600; color: #1a1a1a; }
.table-filters { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.fil-sel {
  padding: 6px 10px;
  border: 1px solid #e0dbd2;
  border-radius: 8px;
  font-size: 12px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  color: #555;
  background: #fafaf8;
  outline: none;
  cursor: pointer;
}
.fil-sel:focus { border-color: #1a4a6b; }
.btn-export {
  padding: 6px 14px;
  background: #f0ece5;
  color: #555;
  border: none;
  border-radius: 8px;
  font-size: 12px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}
.btn-export:hover { background: #e0dbd2; }

.table-scroll { overflow-x: auto; }
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.data-table th {
  padding: 10px 14px;
  text-align: left;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #999;
  background: #fafaf8;
  border-bottom: 1px solid #f0ece5;
  white-space: nowrap;
}
.data-table td {
  padding: 11px 14px;
  border-bottom: 1px solid #f9f7f4;
  color: #333;
  vertical-align: middle;
}
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: #fafaf8; }
.data-table td:nth-child(4) { max-width: 200px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.pill {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
}
.pill-pending { background: #fdecea; color: #c0392b; }
.pill-proses { background: #fef5e7; color: #d35400; }
.pill-selesai { background: #e8f8f0; color: #1e8449; }

.btn-detail {
  padding: 5px 12px;
  background: #eef3f8;
  color: #1a4a6b;
  border: none;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  font-family: 'Plus Jakarta Sans', sans-serif;
  cursor: pointer;
  transition: background 0.2s;
}
.btn-detail:hover { background: #d8e8f3; }

.table-foot {
  padding: 12px 14px;
  font-size: 12px;
  color: #aaa;
  border-top: 1px solid #f0ece5;
}

/* ===== MODAL ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  padding: 1rem;
}
.modal-overlay.hidden { display: none; }
.modal-box {
  background: #fff;
  border-radius: 16px;
  width: 100%;
  max-width: 540px;
  max-height: 90vh;
  overflow-y: auto;
}
.modal-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid #f0ece5;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.modal-ref { font-weight: 600; font-size: 14px; color: #1a4a6b; }
.modal-close {
  background: none; border: none; cursor: pointer;
  font-size: 16px; color: #aaa; padding: 2px 6px;
}
.modal-close:hover { color: #555; }
.modal-body { padding: 1.25rem 1.5rem; }
.modal-row {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
  font-size: 14px;
}
.modal-lbl {
  font-size: 12px;
  font-weight: 600;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  min-width: 90px;
  padding-top: 1px;
}
.modal-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid #f0ece5;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fafaf8;
  border-radius: 0 0 16px 16px;
}
