* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, "Segoe UI", Roboto, sans-serif;
  background: #F1EFE8;
  color: #2C2C2A;
  position: relative;
  min-height: 100vh;
}

/* Watermark teks samar di belakang seluruh halaman */
body::before {
  content: "DUKCAPIL";
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-28deg);
  font-size: 200px;
  font-weight: 800;
  letter-spacing: 10px;
  color: rgba(60, 52, 137, 0.045);
  white-space: nowrap;
  pointer-events: none;
  z-index: 0;
}

.site-header {
  background: #2C3489;
  color: white;
  padding: 14px 24px;
  position: relative;
  z-index: 1;
}

.site-header-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-badge {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: white;
  color: #2C3489;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 12px;
  flex-shrink: 0;
}

.site-title {
  font-weight: 700;
  font-size: 15px;
  line-height: 1.3;
}

.site-subtitle {
  font-size: 11.5px;
  opacity: 0.85;
}

.site-header-inner { justify-content: space-between; }
.site-header-brand { display: flex; align-items: center; gap: 12px; }

.site-nav {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}

.site-nav a {
  color: white;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: 6px;
  opacity: 0.85;
}

.site-nav a:hover { opacity: 1; background: rgba(255, 255, 255, 0.12); }
.site-nav a.active { opacity: 1; background: rgba(255, 255, 255, 0.18); }

.page {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 40px 20px;
  position: relative;
  z-index: 1;
}

.page-wide { align-items: stretch; display: block; padding: 30px 40px; }

.card {
  background: white;
  border: 1px solid #B4B2A9;
  border-radius: 12px;
  padding: 28px 32px;
  max-width: 480px;
  width: 100%;
}

.card-narrow { max-width: 360px; }
.card-wide { max-width: none; margin-top: 20px; }

h1 { font-size: 22px; margin: 0 0 4px; }
.subtitle { font-size: 13px; color: #5F5E5A; margin: 0 0 20px; }

label {
  display: block;
  font-size: 13px;
  color: #5F5E5A;
  margin-bottom: 4px;
  margin-top: 14px;
}

input[type=text], input[type=email], input[type=password], input[type=file],
select, textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #888780;
  border-radius: 6px;
  font-size: 14px;
  background: #FAFAF8;
  font-family: inherit;
}

textarea { min-height: 70px; resize: vertical; }

.section-title {
  font-size: 13px;
  font-weight: 600;
  color: #5F5E5A;
  border-top: 1px solid #B4B2A9;
  margin-top: 22px;
  padding-top: 14px;
}

button, .btn {
  display: inline-block;
  background: #2C2C2A;
  color: white;
  border: none;
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  margin-top: 20px;
  text-align: center;
}

.btn-outline {
  background: white;
  color: #2C2C2A;
  border: 1px solid #888780;
}

.btn-danger { background: #A8402F; }

.button-row { display: flex; gap: 10px; }
.button-row .btn, .button-row button { margin-top: 20px; }

.alert {
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 13px;
  margin-bottom: 16px;
}

.alert-success { background: #E4EFE0; color: #2E5C2A; }
.alert-error { background: #F5E0DC; color: #A8402F; }

.back-link { margin-top: 20px; font-size: 13px; }
.back-link a { color: #5F5E5A; }

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
}

.topbar-actions { display: flex; gap: 10px; align-items: center; }
.topbar-actions .btn { margin-top: 0; }

table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
}

th, td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid #E3E1D8;
  font-size: 13.5px;
}

th { color: #5F5E5A; font-weight: 600; }

.card-wide table { max-width: 1100px; margin: 10px auto 0; }
.card-wide { max-width: 1100px; margin-left: auto; margin-right: auto; }

.empty { text-align: center; color: #888780; padding: 30px 0; }

.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  text-transform: capitalize;
}

.badge-menunggu { background: #F4E9CE; color: #8A6A1F; }
.badge-terverifikasi { background: #E4EFE0; color: #2E5C2A; }
.badge-ditolak { background: #F5E0DC; color: #A8402F; }
.badge-direkap { background: #DDE6F5; color: #2C4E8A; }
.badge-diterima_dukcapil { background: #E0DCF0; color: #4E2C8A; }

.tracking-steps {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin: 18px 0 12px;
}

.tracking-step {
  flex: 1;
  text-align: center;
  font-size: 12px;
  color: #a39c8f;
}

.tracking-step .dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #e8e1d4;
  margin: 0 auto 6px;
}

.tracking-step.done { color: #2E5C2A; font-weight: 600; }
.tracking-step.done .dot { background: #2E5C2A; }
.tracking-step.active { color: #8A6A1F; font-weight: 600; }
.tracking-step.active .dot { background: #8A6A1F; }

.detail-table th { width: 180px; vertical-align: top; }

.file-list { list-style: none; padding: 0; margin: 10px 0 0; }
.file-list li { padding: 8px 0; border-bottom: 1px solid #E3E1D8; font-size: 13.5px; }
.file-list a { color: #3C3489; }
