/* ===== PAC Pagar Nusa UKT — Main Stylesheet ===== */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700;900&family=Nunito:wght@300;400;600;700&display=swap');

:root {
  --hijau: #1a6b3c;
  --hijau-dark: #0f4024;
  --hijau-light: #2d8f52;
  --gold: #c9a227;
  --gold-light: #e8c457;
  --merah: #c0392b;
  --bg: #f5f0e8;
  --bg2: #fffdf7;
  --text: #2c1810;
  --text-light: #6b5a4e;
  --white: #ffffff;
  --shadow: 0 8px 32px rgba(26,107,60,0.12);
  --shadow-lg: 0 16px 48px rgba(26,107,60,0.18);
  --border: #e0d5c1;
  --radius: 16px;
  --radius-sm: 8px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Nunito', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

.container { max-width: 900px; margin: 0 auto; padding: 0 20px; }

/* ===== HERO ===== */
.hero {
  position: relative;
  background: linear-gradient(135deg, var(--hijau-dark) 0%, var(--hijau) 50%, var(--hijau-light) 100%);
  padding: 60px 20px 90px;
  text-align: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute; inset: 0;
  background-image: radial-gradient(circle at 20% 50%, rgba(201,162,39,0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255,255,255,0.05) 0%, transparent 40%);
  pointer-events: none;
}

.hero-content { position: relative; z-index: 2; }

.logo-wrap { margin-bottom: 20px; }

.logo-circle {
  width: 90px; height: 90px;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  box-shadow: 0 8px 24px rgba(201,162,39,0.4), 0 0 0 4px rgba(201,162,39,0.2);
  animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 8px 24px rgba(201,162,39,0.4), 0 0 0 4px rgba(201,162,39,0.2); }
  50% { box-shadow: 0 8px 32px rgba(201,162,39,0.6), 0 0 0 8px rgba(201,162,39,0.1); }
}

.hero-sub {
  color: var(--gold-light);
  font-size: 0.75rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 8px;
}

.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.5rem, 8vw, 4rem);
  font-weight: 900;
  color: var(--white);
  line-height: 1;
  margin-bottom: 8px;
  text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.hero-tagline {
  color: rgba(255,255,255,0.75);
  font-size: 1rem;
  margin-bottom: 20px;
}

.hero-badge {
  display: inline-block;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.25);
  backdrop-filter: blur(8px);
  border-radius: 50px;
  padding: 8px 24px;
  color: rgba(255,255,255,0.9);
  font-size: 0.85rem;
  font-weight: 600;
}

.wave-bottom {
  position: absolute;
  bottom: -1px; left: 0; right: 0;
}

.wave-bottom svg { display: block; width: 100%; height: 60px; }

/* ===== INFO CARDS ===== */
.info-section { padding: 50px 0 20px; }

.info-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.info-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  box-shadow: var(--shadow);
  border-left: 5px solid;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.info-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.info-card.gold { border-color: var(--gold); }
.info-card.green { border-color: var(--hijau); }
.info-card.red { border-color: var(--merah); }

.card-icon { font-size: 2rem; flex-shrink: 0; }

.card-body h3 {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-light);
  margin-bottom: 6px;
}

.card-body p { font-weight: 600; color: var(--text); font-size: 0.95rem; }
.card-body small { color: var(--text-light); font-size: 0.8rem; }
.card-body .price { font-size: 1.3rem; color: var(--merah); font-weight: 700; }

/* ===== ALERTS ===== */
.alert-success-wrap { padding: 20px 0; }

.alert-success {
  background: linear-gradient(135deg, #d4edda, #c3e6cb);
  border: 1px solid #b1dfbb;
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.alert-icon { font-size: 2rem; flex-shrink: 0; }
.alert-content h3 { color: #155724; font-size: 1.1rem; margin-bottom: 8px; }
.alert-content p { color: #155724; margin-bottom: 8px; }

.btn-bayar, .btn-cetak {
  display: inline-block;
  padding: 10px 24px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  margin-right: 10px;
  margin-top: 8px;
  transition: all 0.3s;
}

.btn-bayar { background: var(--hijau); color: white; }
.btn-bayar:hover { background: var(--hijau-dark); transform: translateY(-2px); }
.btn-cetak { background: var(--gold); color: white; }
.btn-cetak:hover { background: #a8881e; transform: translateY(-2px); }

.alert-error {
  background: #fdecea;
  border: 1px solid #f5c6cb;
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  color: #721c24;
  margin: 20px 0;
}

/* ===== FORM SECTION ===== */
.form-section { padding: 20px 0 50px; }

.form-card {
  background: var(--white);
  border-radius: 24px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.form-header {
  background: linear-gradient(135deg, var(--hijau-dark), var(--hijau));
  padding: 32px 40px;
  color: white;
}

.form-header h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  margin-bottom: 6px;
}

.form-header p { color: rgba(255,255,255,0.75); font-size: 0.9rem; }

form { padding: 40px; }

.form-section-title {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 32px 0 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--border);
}

.form-section-title:first-of-type { margin-top: 0; }

.section-num {
  background: var(--gold);
  color: white;
  width: 36px; height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.form-section-title h3 {
  font-size: 1.1rem;
  color: var(--hijau-dark);
  font-weight: 700;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group.full { grid-column: 1 / -1; }

.form-group label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text);
}

.req { color: var(--merah); }

.form-group input,
.form-group select,
.form-group textarea {
  padding: 12px 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: 'Nunito', sans-serif;
  font-size: 0.9rem;
  color: var(--text);
  background: var(--bg2);
  transition: all 0.3s;
  outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--hijau);
  background: white;
  box-shadow: 0 0 0 4px rgba(26,107,60,0.08);
}

/* Upload Box */
.upload-box {
  border: 2px dashed var(--border);
  border-radius: var(--radius-sm);
  position: relative;
  cursor: pointer;
  transition: all 0.3s;
  overflow: hidden;
  min-height: 100px;
}

.upload-box:hover { border-color: var(--hijau); background: rgba(26,107,60,0.03); }

.upload-box input[type="file"] {
  position: absolute; inset: 0;
  opacity: 0; cursor: pointer; z-index: 2;
  width: 100%; height: 100%;
  padding: 0; border: none; background: transparent;
}

.upload-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  gap: 6px;
  color: var(--text-light);
}

.upload-icon { font-size: 2rem; }
.upload-placeholder span { font-weight: 600; font-size: 0.85rem; }
.upload-placeholder small { font-size: 0.75rem; }

#previewFoto {
  width: 100%; height: 120px; object-fit: cover;
  display: block;
}

/* Radio */
.radio-group { display: flex; gap: 16px; flex-wrap: wrap; }

.radio-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.3s;
  flex: 1;
  min-width: 180px;
}

.radio-card:has(input:checked) {
  border-color: var(--hijau);
  background: rgba(26,107,60,0.06);
}

.radio-card input { accent-color: var(--hijau); }
.radio-label { font-weight: 600; font-size: 0.9rem; }

/* Biaya */
.biaya-info {
  margin-top: 28px;
  background: linear-gradient(135deg, #fffbf0, #fff8e1);
  border: 2px solid var(--gold-light);
  border-radius: var(--radius);
  padding: 24px;
}

.biaya-detail h4 {
  font-family: 'Playfair Display', serif;
  color: var(--gold);
  font-size: 1.1rem;
  margin-bottom: 14px;
}

.biaya-table { width: 100%; border-collapse: collapse; }
.biaya-table td { padding: 8px 0; border-bottom: 1px solid rgba(201,162,39,0.2); color: var(--text); font-size: 0.9rem; }
.biaya-table td:last-child { text-align: right; }
.biaya-table tr.total td { border-bottom: none; padding-top: 12px; font-size: 1.05rem; color: var(--merah); }

/* Submit */
.form-footer { margin-top: 32px; text-align: center; }

.btn-submit {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, var(--hijau), var(--hijau-light));
  color: white;
  border: none;
  padding: 16px 48px;
  border-radius: 50px;
  font-family: 'Nunito', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 8px 24px rgba(26,107,60,0.3);
}

.btn-submit:hover {
  background: linear-gradient(135deg, var(--hijau-dark), var(--hijau));
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(26,107,60,0.4);
}

/* ===== CEK STATUS ===== */
.cek-section { padding: 20px 0 50px; }

.cek-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px;
  text-align: center;
  box-shadow: var(--shadow);
}

.cek-card h3 {
  font-family: 'Playfair Display', serif;
  color: var(--hijau-dark);
  margin-bottom: 20px;
  font-size: 1.3rem;
}

.cek-form {
  display: flex;
  gap: 12px;
  max-width: 500px;
  margin: 0 auto;
}

.cek-form input {
  flex: 1;
  padding: 12px 16px;
  border: 2px solid var(--border);
  border-radius: 50px;
  font-family: 'Nunito', sans-serif;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.3s;
}

.cek-form input:focus { border-color: var(--hijau); }

.cek-form button {
  background: var(--hijau);
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 50px;
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s;
}

.cek-form button:hover { background: var(--hijau-dark); }

/* ===== FOOTER ===== */
.footer {
  background: var(--hijau-dark);
  color: rgba(255,255,255,0.7);
  text-align: center;
  padding: 32px 20px;
}

.footer p { margin-bottom: 4px; font-size: 0.9rem; }
.footer small { color: rgba(255,255,255,0.4); font-size: 0.75rem; }

/* ===== ADMIN STYLES ===== */
.admin-wrap {
  min-height: 100vh;
  display: flex;
}

.sidebar {
  width: 260px;
  background: linear-gradient(180deg, var(--hijau-dark) 0%, var(--hijau) 100%);
  padding: 0;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
}

.sidebar-header {
  padding: 28px 24px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  text-align: center;
}

.sidebar-header .logo-small {
  font-size: 2rem;
  margin-bottom: 8px;
}

.sidebar-header h2 {
  font-family: 'Playfair Display', serif;
  color: white;
  font-size: 1.1rem;
  line-height: 1.3;
}

.sidebar-header p { color: rgba(255,255,255,0.6); font-size: 0.75rem; margin-top: 4px; }

.sidebar-nav { padding: 16px 0; flex: 1; }

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 24px;
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  transition: all 0.2s;
  border-left: 3px solid transparent;
}

.nav-item:hover, .nav-item.active {
  background: rgba(255,255,255,0.12);
  color: white;
  border-left-color: var(--gold);
}

.nav-item .nav-icon { font-size: 1.1rem; width: 20px; text-align: center; }

.sidebar-footer {
  padding: 20px 24px;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.sidebar-footer a {
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.sidebar-footer a:hover { color: white; }

/* Admin Main */
.admin-main {
  flex: 1;
  background: #f0f2f5;
  overflow-x: auto;
}

.admin-topbar {
  background: white;
  padding: 16px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  position: sticky; top: 0; z-index: 10;
}

.admin-topbar h1 { font-size: 1.2rem; color: var(--text); }
.admin-topbar .user-badge {
  background: var(--bg);
  padding: 8px 16px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--hijau-dark);
}

.admin-content { padding: 28px 32px; }

/* Stats */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 28px;
}

.stat-card {
  background: white;
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  display: flex;
  align-items: center;
  gap: 16px;
}

.stat-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.stat-icon.green { background: rgba(26,107,60,0.1); }
.stat-icon.gold { background: rgba(201,162,39,0.1); }
.stat-icon.red { background: rgba(192,57,43,0.1); }
.stat-icon.blue { background: rgba(52,152,219,0.1); }

.stat-info h3 { font-size: 1.8rem; font-weight: 900; color: var(--text); line-height: 1; }
.stat-info p { color: var(--text-light); font-size: 0.8rem; margin-top: 4px; }

/* Table */
.table-card {
  background: white;
  border-radius: var(--radius);
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  overflow: hidden;
  margin-bottom: 24px;
}

.table-header {
  padding: 20px 24px;
  border-bottom: 1px solid #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.table-header h3 { font-size: 1rem; color: var(--text); }

.filter-form { display: flex; gap: 10px; flex-wrap: wrap; }

.filter-form select,
.filter-form input {
  padding: 8px 14px;
  border: 1px solid #e0e0e0;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  outline: none;
}

.filter-form button {
  background: var(--hijau);
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  cursor: pointer;
  font-weight: 600;
}

.data-table { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
.data-table th {
  background: #f8f9fa;
  padding: 12px 16px;
  text-align: left;
  font-weight: 700;
  color: var(--text-light);
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.5px;
}

.data-table td { padding: 14px 16px; border-bottom: 1px solid #f5f5f5; color: var(--text); }
.data-table tr:hover { background: #fafafa; }

/* Badges */
.badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
}

.badge-pending { background: #fff3cd; color: #856404; }
.badge-lunas { background: #d4edda; color: #155724; }
.badge-ditolak { background: #f8d7da; color: #721c24; }
.badge-verifikasi { background: #cce5ff; color: #004085; }
.badge-menunggu { background: #f5f5f5; color: #666; }

.action-btns { display: flex; gap: 6px; flex-wrap: wrap; }
.btn-xs {
  padding: 5px 12px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: opacity 0.2s;
}
.btn-xs:hover { opacity: 0.8; }
.btn-view { background: #e8f5e9; color: var(--hijau-dark); }
.btn-approve { background: var(--hijau); color: white; }
.btn-reject { background: var(--merah); color: white; }
.btn-print { background: var(--gold); color: white; }

/* Login */
.login-wrap {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--hijau-dark) 0%, var(--hijau) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.login-card {
  background: white;
  border-radius: 24px;
  padding: 48px;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 24px 64px rgba(0,0,0,0.2);
  text-align: center;
}

.login-card .logo-big { font-size: 3rem; margin-bottom: 16px; }
.login-card h1 {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  color: var(--hijau-dark);
  margin-bottom: 6px;
}
.login-card p { color: var(--text-light); font-size: 0.9rem; margin-bottom: 32px; }

.login-form { display: flex; flex-direction: column; gap: 16px; text-align: left; }

.login-form input {
  padding: 14px 18px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: 'Nunito', sans-serif;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.3s;
}

.login-form input:focus { border-color: var(--hijau); }

.login-form button {
  background: linear-gradient(135deg, var(--hijau), var(--hijau-light));
  color: white;
  border: none;
  padding: 14px;
  border-radius: var(--radius-sm);
  font-family: 'Nunito', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s;
  margin-top: 8px;
}

.login-form button:hover { background: linear-gradient(135deg, var(--hijau-dark), var(--hijau)); }

.login-error {
  background: #fdecea;
  color: #c0392b;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  text-align: left;
  margin-bottom: 8px;
}

/* Print surat */
@media print {
  body { background: white !important; }
  .no-print { display: none !important; }
  .print-container { max-width: 100%; }
}

/* Cetak */
.print-page {
  background: white;
  min-height: 100vh;
  padding: 20px;
}

.surat-wrapper {
  max-width: 720px;
  margin: 0 auto;
  background: white;
  padding: 40px;
  font-family: 'Times New Roman', serif;
  font-size: 12pt;
  line-height: 1.6;
}

.surat-header {
  display: flex;
  align-items: center;
  gap: 20px;
  border-bottom: 3px double #000;
  padding-bottom: 12px;
  margin-bottom: 20px;
}

.surat-logo {
  width: 70px; height: 70px;
  border: 2px solid #000;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.surat-org h2 { font-size: 14pt; text-align: center; font-weight: bold; }
.surat-org p { font-size: 10pt; text-align: center; }
.surat-org .underline { border-bottom: 1px solid #000; padding-bottom: 2px; }

.surat-body table { width: 100%; }
.surat-body td { padding: 2px 0; vertical-align: top; }
.surat-ttd { display: flex; justify-content: space-between; margin-top: 30px; }
.surat-ttd-item { text-align: center; width: 45%; }
.surat-ttd-name { margin-top: 60px; border-top: 1px solid #000; padding-top: 4px; font-weight: bold; }
.surat-divider { border: 1px dashed #000; margin: 30px 0; }

/* Responsive */
@media (max-width: 600px) {
  .form-grid { grid-template-columns: 1fr; }
  .form-group.full { grid-column: auto; }
  .cek-form { flex-direction: column; }
  form { padding: 24px 20px; }
  .form-header { padding: 24px 20px; }
  .admin-wrap { flex-direction: column; }
  .sidebar { width: 100%; }
  .admin-content { padding: 20px 16px; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
}

/* Bayar page */
.bayar-section { padding: 50px 0; }

.bayar-card {
  background: white;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  max-width: 600px;
  margin: 0 auto;
}

.bayar-header {
  background: linear-gradient(135deg, var(--gold), #e8c457);
  padding: 28px 32px;
  color: white;
}

.bayar-header h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
}

.bayar-header p { opacity: 0.85; margin-top: 4px; }

.bayar-body { padding: 32px; }

.rekening-info {
  background: #f8f9fa;
  border-radius: var(--radius-sm);
  padding: 20px;
  margin-bottom: 24px;
}

.rekening-info h4 { color: var(--text-light); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 12px; }

.bank-item { display: flex; align-items: center; gap: 16px; margin-bottom: 14px; }
.bank-logo {
  width: 48px; height: 48px;
  background: var(--hijau);
  color: white;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 0.7rem;
  text-align: center;
  line-height: 1.2;
}

.bank-detail strong { display: block; font-size: 1rem; }
.bank-detail span { font-size: 0.8rem; color: var(--text-light); }

.total-bayar {
  text-align: center;
  background: linear-gradient(135deg, #fffbf0, #fff8e1);
  border: 2px solid var(--gold-light);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 24px;
}

.total-bayar p { font-size: 0.85rem; color: var(--text-light); margin-bottom: 6px; }
.total-bayar .amount { font-size: 2rem; font-weight: 900; color: var(--merah); }
