:root{
--bg:#f4f7fb; --card:#ffffff; --line:#e5e9f2; --txt:#0f172a; --muted:#6b7280; --acc:#2563eb;
--ok:#16a34a; --warn:#d97706; --err:#dc2626;
}
*{box-sizing:border-box}
html,body{height:100%}
body{
margin:0; font-family:ui-sans-serif,system-ui,-apple-system,Segoe UI,Roboto,Arial;
background:
radial-gradient(1200px 500px at 80% -10%, #e6f0ff 0%, transparent 60%),
linear-gradient(180deg, #f9fbff, #f4f7fb);
color:var(--txt);
}
.container{max-width:460px;margin:0 auto;padding:28px}
.card{
background:var(--card);
border:1px solid var(--line);
border-radius:20px; padding:22px; box-shadow:0 8px 30px rgba(15, 23, 42, .06);
}
h1{font-size:22px;margin:0 0 6px}
.sub{color:var(--muted); font-size:13px; margin-bottom:18px}
.input{display:block;width:100%; background:#f8fafc; border:1px solid var(--line); color:var(--txt);
border-radius:14px; padding:12px 14px; margin:10px 0; outline:none}
.input:focus{border-color:#93c5fd; box-shadow:0 0 0 3px rgba(37, 99, 235, .15)}
.row{display:flex; gap:10px}
.btn{
display:inline-block; width:100%; text-align:center; padding:12px 14px; border-radius:14px; cursor:pointer;
border:1px solid transparent; background:linear-gradient(180deg, #60a5fa, #3b82f6); color:#fff; font-weight:700;
}
.btn.alt{background:#fff; border-color:var(--line); color:#0f172a}
.btn.alt:hover{border-color:#c7d2fe}
.actions{display:flex; gap:10px; margin-top:12px}
.lock-link{display:flex; align-items:center; gap:10px; margin-top:16px; color:var(--muted); text-decoration:none}
.lock-link:hover{color:#0f172a}
.small{font-size:12px; color:var(--muted)}
.footer{margin-top:20px; text-align:center; font-size:12px; color:var(--muted)}
.logo{font-weight:800; letter-spacing:.4px}
.tag{display:inline-block; font-size:11px; padding:4px 8px; border:1px solid var(--line); border-radius:999px; color:#475569; background:#f8fafc}

/* ==== Responsive helpers (admin dashboard) ==== */
.container.wide{ max-width: 1100px; }                       /* desktop width utk admin */
@media (min-width: 640px){ .container.wide{ padding: 32px; } }
@media (min-width: 1024px){ .container.wide{ padding: 40px; } }

/* small util */
.hide-on-mobile{ display:none; }
@media (min-width: 640px){ .hide-on-mobile{ display:initial; } }

/* === Minimal bottom tabbar (mobile-first) === */
.tabbar{
  position: fixed; left: 0; right: 0; bottom: 10px;
  display: flex; justify-content: center; gap: 10px;
  padding: 0 12px calc(10px + env(safe-area-inset-bottom));
  z-index: 60; pointer-events: none;  /* supaya hanya tombol yang klik */
}
.tabbar .tab{
  pointer-events: auto;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 12px; height: 40px;
  border-radius: 999px; border: 1px solid var(--line);
  background: #fff; color: #0f172a; text-decoration: none; font-weight: 700;
  box-shadow: 0 6px 20px rgba(15,23,42,.08), 0 1px 0 rgba(15,23,42,.04) inset;
}
.tabbar .tab svg{ width:18px; height:18px; }
.tabbar .tab .lbl{ font-size:12px; line-height:1; }

.tabbar .tab.primary{
  border-color: transparent;
  background: linear-gradient(180deg,#60a5fa,#3b82f6);
  color:#fff;
}

/* Super-compact di layar kecil: ikon saja */
@media (max-width: 420px){
  .tabbar .tab{ padding: 8px 10px; }
  .tabbar .tab .lbl{ display: none; }
}

/* Hindari tumpang tindih dengan content */
body{ padding-bottom: max(80px, calc(40px + 24px + env(safe-area-inset-bottom))); }
