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

:root {
  --primary: #2f7ebf;
  --primary-dark: #24639a;
  --primary-light: #e8f2fb;
  --black: #000000;
  --text: #0a0a0a;
  --text-muted: #5b6b7c;
  --bg: #ffffff;
  --bg-soft: #f5f8fb;
  --border: #e3ebf3;
  --success: #22a06b;
  --warning: #e8a23b;
  --danger: #e5484d;
  --radius: 12px;
  --radius-lg: 18px;
  --radius-pill: 999px;
  --shadow-sm: 0 2px 8px rgba(0,0,0,.06);
  --shadow: 0 4px 16px rgba(0,0,0,.08);
  --shadow-lg: 0 12px 32px rgba(47,126,191,.18);
  --container: 1100px;
  --nav-h: 64px;
  --bottom-nav-h: 68px;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; }

body {
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    font-size: 16px;
    overflow-x: hidden;
    /* Beri ruang agar konten tidak tertutup nav di mobile */
    padding-bottom: var(--bottom-nav-h);
}

a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); }
img { max-width: 100%; height: auto; display: block; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 20px; }

.site-header {
  background: rgba(255,255,255,.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 100;
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: var(--nav-h); }
.site-header .logo img { height: 40px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: var(--radius-pill);
  border: none; font-family: inherit; font-weight: 600; font-size: 15px;
  cursor: pointer; transition: all .2s ease; text-decoration: none; white-space: nowrap;
}
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); color: #fff; box-shadow: var(--shadow-lg); }
.btn-outline { background: transparent; color: var(--primary); border: 2px solid var(--primary); }
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-black { background: var(--black); color: #fff; }
.btn-black:hover { background: #1a1a1a; color: #fff; }
.btn-success { background: var(--success); color: #fff; }
.btn-success:hover { background: #1b8a5a; color: #fff; }
.btn-warning { background: var(--warning); color: #fff; }
.btn-warning:hover { background: #d18e2b; color: #fff; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: #c73a3e; color: #fff; }
.btn-sm { padding: 8px 14px; font-size: 13px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

.card { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px; box-shadow: var(--shadow-sm); }

.badge { display: inline-block; padding: 4px 12px; border-radius: var(--radius-pill); font-size: 12px; font-weight: 600; }
.badge-primary { background: var(--primary-light); color: var(--primary); }
.badge-success { background: #e3f7ec; color: var(--success); }
.badge-warning { background: #fdf3e2; color: var(--warning); }
.badge-danger  { background: #fdecec; color: var(--danger); }

.bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0; height: var(--bottom-nav-h);
  background: rgba(255,255,255,.96); backdrop-filter: blur(12px);
  border-top: 1px solid var(--border);
  display: flex; justify-content: space-around; align-items: center;
  z-index: 999; padding-bottom: env(safe-area-inset-bottom);
}
.bottom-nav .nav-item {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px; color: var(--text-muted); font-size: 11px; font-weight: 500; padding: 6px 0;
  transition: color .2s;
}
.bottom-nav .nav-item .icon { font-size: 22px; line-height: 1; }
.bottom-nav .nav-item.active { color: var(--primary); }
.bottom-nav .nav-item.active .icon { transform: translateY(-1px); }

.form-group { margin-bottom: 16px; }
.form-label { display: block; margin-bottom: 6px; font-weight: 600; font-size: 14px; color: var(--text); }
.form-control {
  width: 100%; padding: 12px 16px; border: 1px solid var(--border);
  border-radius: var(--radius); font-family: inherit; font-size: 15px;
  background: var(--bg); transition: border-color .2s;
}
.form-control:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-light); }
textarea.form-control { min-height: 100px; resize: vertical; }
select.form-control { cursor: pointer; }

.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; } .mt-4 { margin-top: 32px; }
.mb-1 { margin-bottom: 8px; } .mb-2 { margin-bottom: 16px; } .mb-3 { margin-bottom: 24px; } .mb-4 { margin-bottom: 32px; }
.flex { display: flex; } .items-center { align-items: center; } .justify-between { justify-content: space-between; } .gap-2 { gap: 16px; }
.hidden { display: none !important; }

::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--bg-soft); }
::-webkit-scrollbar-thumb { background: #cbd8e5; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary); }

/* ===== DESKTOP / TABLET ===== */
@media (min-width: 768px) {
  body { padding-bottom: 0; } /* Desktop: hilangkan padding bawah */
  .bottom-nav { 
    max-width: 600px; margin: 0 auto; bottom: 16px; 
    border-radius: var(--radius-pill); 
    border: 1px solid var(--border); 
    box-shadow: var(--shadow); 
  }
}

/* ===== FOOTER GLOBAL ===== */
footer.site-footer {
    padding: 24px 0;
    background: var(--bg-soft);
    border-top: 1px solid var(--border);
    margin-top: 40px;
    
    /* Trik agar background footer memanjang menutupi celah putih body */
    margin-bottom: calc(-1 * var(--bottom-nav-h)); 
    padding-bottom: calc(var(--bottom-nav-h) + 24px);
}

/* Di desktop, bottom nav melayang di tengah jadi footer tidak butuh padding ekstra */
@media (min-width: 768px) {
    footer.site-footer {
        padding-bottom: 24px;
    }
}