:root{
  --bg:#f3f4f6;
  --card:#ffffff;
  --primary:#2563eb;
  --muted:#666;
}

*{box-sizing:border-box}
body{
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  margin:0;
  background:var(--bg);
  color:#222;
}
.container{
  max-width:980px;
  margin:14px auto;
  padding:14px;
}
header{display:flex;flex-direction:column;gap:12px;margin-bottom:12px}
header h1{margin:0;font-size:22px}
.nav{display:flex;gap:8px;flex-wrap:wrap}
.nav a{background:var(--primary);color:#fff;padding:8px 12px;border-radius:8px;text-decoration:none;font-weight:600}

.card{
  background:var(--card);
  padding:14px;
  border-radius:10px;
  margin-bottom:12px;
  box-shadow:0 6px 18px rgba(16,24,40,0.06);
}
.cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:10px;margin-bottom:16px}
.card .big{font-size:20px;font-weight:700;margin:8px 0;color:var(--primary)}

table{width:100%;border-collapse:collapse;background:var(--card);overflow:auto}
table th, table td{padding:10px;border:1px solid #eee;font-size:14px}
table th{background:#fafafa}

input[type="text"], input[type="number"], input[type="date"], textarea, select{
  width:100%;
  padding:10px;border-radius:8px;border:1px solid #e5e7eb;background:#fff;
}
button{background:var(--primary);color:#fff;padding:10px 12px;border-radius:8px;border:0;cursor:pointer;font-weight:600}
button:hover{opacity:0.95}
.back{display:inline-block;margin-bottom:10px;color:var(--muted);text-decoration:none}
.hapus{color:red;text-decoration:none;font-weight:600;margin-left:8px}

/* responsive */
@media (max-width:600px){
  .nav a{font-size:14px;padding:8px}
  header h1{font-size:18px}
  table th, table td{font-size:13px;padding:8px}
}
