:root{
  --bg:#0b1220;
  --panel:#0f172a;
  --panel-2:#111827;
  --border:rgba(255,255,255,.08);
  --text:#e5e7eb;
  --muted:#9ca3af;
  --accent:#38bdf8;
  --good:#22c55e;
}

*{box-sizing:border-box}
body{
  margin:0;
  font-family:system-ui,-apple-system,Segoe UI,Roboto,Arial;
  background:linear-gradient(180deg,#020617,#0b1220);
  color:var(--text);
}

/* NAVBAR */
.nav{
  display:flex;
  gap:14px;
  align-items:center;
  padding:14px 16px;
  background:rgba(15,23,42,.9);
  backdrop-filter:blur(8px);
  border-bottom:1px solid var(--border);
  position:sticky;
  top:0;
  z-index:10;
}

.nav strong{
  font-size:15px;
}

.nav a{
  color:var(--muted);
  text-decoration:none;
  font-size:14px;
  white-space:nowrap;
}

.nav a:hover{color:#fff}

.nav .right{
  margin-left:auto;
}

/* CONTAINER */
.container{
  padding:16px;
  max-width:1100px;
  margin:0 auto;
}

/* CARDS */
.cards{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:12px;
}

.card{
  background:linear-gradient(180deg,var(--panel),var(--panel-2));
  border:1px solid var(--border);
  border-radius:16px;
  padding:14px;
  box-shadow:0 10px 40px rgba(0,0,0,.35);
}

.card h3{
  margin:0 0 6px;
  font-size:14px;
  color:var(--muted);
}

.card .num{
  font-size:26px;
  font-weight:800;
}

/* TABLE */
.table-wrap{
  overflow-x:auto;
}

table{
  width:100%;
  border-collapse:collapse;
  min-width:520px;
}

th,td{
  padding:12px;
  border-bottom:1px solid var(--border);
  text-align:left;
  font-size:14px;
}

th{
  color:var(--muted);
  font-weight:600;
}

.badge{
  padding:4px 8px;
  border-radius:999px;
  font-size:12px;
  background:rgba(56,189,248,.15);
  color:var(--accent);
}

/* DESKTOP */
@media (min-width: 768px){
  .cards{
    grid-template-columns:repeat(4,1fr);
  }
}
/* FORM */
.form-grid{
  display:grid;
  grid-template-columns:1fr;
  gap:12px;
}

.form-group small{
  display:block;
  margin-bottom:6px;
  color:var(--muted);
  font-size:13px;
}

input[type="text"],
input[type="url"]{
  width:100%;
  padding:12px;
  border-radius:12px;
  border:1px solid var(--border);
  background:#020617;
  color:#fff;
}

.check-row{
  display:flex;
  align-items:center;
  gap:8px;
  margin-top:6px;
}

.actions{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
}

.btn{
  padding:10px 14px;
  border-radius:12px;
  border:none;
  font-weight:700;
  cursor:pointer;
}

.btn.save{background:#22c55e;color:#052e16}
.btn.edit{background:#38bdf8;color:#042f2e}
.btn.del{background:#ef4444;color:#fff}

@media (min-width:768px){
  .form-grid{
    grid-template-columns:1fr 1fr;
  }
}
/* ===== FORM BASE ===== */
.form{
  display:grid;
  gap:14px;
}

.form-group{
  display:flex;
  flex-direction:column;
  gap:6px;
}

.form-group label,
.form-group small{
  color:var(--muted);
  font-size:13px;
}

.form-group input,
.form-group textarea{
  width:100%;
  padding:12px 14px;
  border-radius:14px;
  border:1px solid var(--border);
  background:#020617;
  color:#fff;
  font-size:14px;
}

.form-group textarea{
  resize:vertical;
  min-height:80px;
}

/* CHECKBOX */
.check{
  display:flex;
  align-items:center;
  gap:10px;
  margin-top:6px;
}
.check input{
  width:18px;
  height:18px;
}

/* BUTTON */
.btn-main{
  padding:12px 18px;
  border-radius:14px;
  border:none;
  font-weight:800;
  cursor:pointer;
  background:#22c55e;
  color:#052e16;
  width:fit-content;
}

/* FILE INPUT (lebih cakep) */
input[type="file"]{
  padding:10px;
  background:#020617;
  border-radius:14px;
  border:1px dashed var(--border);
  color:var(--muted);
}

/* CARD TITLE */
.card h3{
  font-size:16px;
  margin-bottom:10px;
}