/* Theme: Dark professional slate background, structural green gradient accent, 
   clean modern sans-serif — customized for Pravatama Consulting. 
   Responsive for desktop, tablet, and mobile portrait. */

:root {
  --bg: #0f172a;               /* Slate 900 - Latar belakang utama gelap profesional */
  --bg-soft: #1e293b;          /* Slate 800 - Latar elemen lembut/input */
  --card: #ffffff;             /* Kartu putih bersih */
  --text: #0f172a;             /* Teks utama gelap untuk di dalam kartu */
  --text-muted: #64748b;       /* Slate 500 - Teks sekunder/muted */
  --orange-1: #059669;         /* Hijau Struktural / Emerald 600 */
  --orange-2: #34d399;         /* Emerald 400 */
  --orange-grad: linear-gradient(135deg, #059669, #10b981); /* Gradasi hijau struktural */
  --shadow: 0 10px 30px rgba(15, 23, 42, 0.25);
  --shadow-sm: 0 4px 14px rgba(15, 23, 42, 0.15);
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 10px;
  --success: #10b981;
  --error: #ef4444;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: #f8fafc; /* Teks terang untuk body berlatar gelap */
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: #34d399; text-decoration: none; }

.app-shell {
  max-width: 720px;
  margin: 0 auto;
  padding: 24px 16px 120px;
}

.app-header {
  text-align: center;
  margin-bottom: 20px;
}
.app-header-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}
.brand-logo {
  width: 72px;
  height: 72px;
  object-fit: contain;
  flex: 0 0 auto;
}
.app-header-copy { text-align: center; }
.app-header h1 {
  font-size: 22px;
  margin: 0 0 6px;
  color: #ffffff;
}
.app-header p {
  color: #94a3b8;
  font-size: 14px;
  margin: 0;
}

.card {
  background: var(--card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 22px;
  margin-bottom: 18px;
  color: var(--text);
}

.card h2 {
  font-size: 17px;
  margin: 0 0 14px;
  color: var(--text);
}
.card h3 {
  font-size: 15px;
  margin: 18px 0 8px;
  color: var(--text);
}

.step-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--orange-grad);
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  margin-right: 8px;
}

label {
  display: block;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

input[type=text], input[type=number], input[type=password], select, textarea {
  width: 100%;
  margin-top: 6px;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  font-size: 15px;
  color: var(--text);
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--orange-1);
  background: #fff;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 16px;
}
@media (max-width: 560px) {
  .grid-2 { grid-template-columns: 1fr; }
  .app-header-brand { flex-direction: column; gap: 8px; }
  .brand-logo { width: 58px; height: 58px; }
}

.radio-group { display: flex; gap: 10px; margin-top: 6px; }
.radio-pill {
  flex: 1;
  text-align: center;
  padding: 10px;
  border-radius: var(--radius-md);
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  cursor: pointer;
  font-size: 14px;
  color: var(--text);
}
.radio-pill input { display: none; }
.radio-pill.active {
  background: var(--orange-grad);
  color: #fff;
  border-color: transparent;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--orange-grad);
  color: #fff;
  padding: 13px 22px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  box-shadow: var(--shadow-sm);
}
.btn-secondary {
  background: #e2e8f0;
  color: #0f172a;
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 14px;
}
.btn-secondary-outline, .btn-danger-outline {
  background: transparent;
  border: 1px solid #cbd5e1;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 13px;
  color: var(--text);
}
.btn-danger-outline { color: var(--error); border-color: #fca5a5; }

.result-line {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  padding: 8px 0;
  border-bottom: 1px dashed #cbd5e1;
}
.result-line:last-child { border-bottom: none; }
.result-section-title {
  font-weight: 600;
  font-size: 13px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 16px 0 4px;
}
.result-total {
  display: flex;
  justify-content: space-between;
  font-size: 17px;
  font-weight: 700;
  padding-top: 14px;
  margin-top: 8px;
  border-top: 2px solid #e2e8f0;
}

.notes {
  background: #f1f5f9;
  border-radius: var(--radius-md);
  padding: 14px;
  font-size: 12.5px;
  color: var(--text-muted);
  margin-top: 14px;
}
.notes ul { margin: 6px 0 0; padding-left: 18px; }

/* Floating bottom action bar */
.bottom-bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 18px;
  padding-bottom: max(14px, env(safe-area-inset-bottom));
  background: var(--card);
  box-shadow: 0 -8px 24px rgba(15,23,42,0.20);
  max-width: 720px;
  margin: 0 auto;
  color: var(--text);
}
.bottom-bar .total-label { font-size: 12px; color: var(--text-muted); }
.bottom-bar .total-value { font-size: 18px; font-weight: 700; color: var(--text); }
.fab-send {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--orange-grad);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  box-shadow: 0 8px 20px rgba(5,150,105,0.40);
  flex-shrink: 0;
}

.hidden { display: none !important; }
.muted { color: var(--text-muted); }
.small { font-size: 12.5px; }

.alert {
  padding: 12px 16px;
  border-radius: var(--radius-md);
  margin-bottom: 16px;
  font-size: 14px;
}
.alert-success { background: #d1fae5; color: #065f46; }
.alert-error { background: #fee2e2; color: #991b1b; }

/* --- Admin area --- */
.admin-body { background: var(--bg); }
.admin-auth-card {
  max-width: 380px;
  margin: 80px auto;
  background: var(--card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 28px;
  color: var(--text);
}
.admin-auth-card h1 { font-size: 19px; margin: 0 0 6px; color: var(--text); }
.admin-topbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 16px 24px;
  background: #ffffff;
  color: #0f172a;
  box-shadow: var(--shadow-sm);
}
.admin-topbar-title { font-weight: 700; color: #0f172a; }
.admin-topnav { display: flex; gap: 14px; flex-wrap: wrap; font-size: 13.5px; }
.admin-topnav a { color: #0f172a; }
.admin-topnav .logout-link { color: var(--error); }
.admin-main { max-width: 960px; margin: 24px auto 80px; padding: 0 16px; }
.table { width: 100%; border-collapse: collapse; margin-bottom: 12px; }
.table th, .table td { text-align: left; padding: 6px 8px; font-size: 13.5px; color: #0f172a; }
.table th { color: var(--text-muted); font-weight: 600; }
.subcard {
  background: #f1f5f9;
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 16px;
  color: #0f172a;
}
.subcard-head { display: flex; justify-content: space-between; align-items: center; }
.inline-form { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; align-items: center; }
.inline-form-tiny { display: inline-block; margin: 4px 6px 4px 0; }
.inline-form-group { margin-bottom: 10px; }
.inline-form input, .inline-form select { width: auto; margin-top: 0; }
.checkbox-inline { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: #0f172a; }
.branding-preview-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 10px 0 14px;
}
.branding-preview {
  width: 72px;
  height: 72px;
  object-fit: contain;
  background: #fff;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-md);
  padding: 6px;
}
.badge {
  font-size: 10.5px;
  background: var(--orange-grad);
  color: #fff;
  padding: 2px 8px;
  border-radius: 999px;
  vertical-align: middle;
}