/* Sporty + Elegan + Responsif */
:root{
  --bg1:#0b1220;
  --bg2:#0f1b35;
  --card:#121a2e;
  --card2:#0e1528;
  --text:#e9eefc;
  --muted:#9fb0d2;
  --accent:#5ef2d6;
  --accent2:#7aa6ff;
  --danger:#ff5b6b;
  --warning:#ffd166;
  --ok:#42f58a;
  --shadow: 0 18px 40px rgba(0,0,0,.35);
  --radius: 18px;
  --radius2: 14px;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  color:var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Apple Color Emoji","Segoe UI Emoji";
  background: radial-gradient(1200px 800px at 20% 20%, rgba(122,166,255,.14), transparent 55%),
              radial-gradient(900px 700px at 80% 10%, rgba(94,242,214,.12), transparent 55%),
              linear-gradient(180deg, var(--bg1), var(--bg2));
}

a{color:inherit; text-decoration:none}
.container{max-width:1100px; margin:0 auto; padding:18px}

.topbar{
  position:sticky; top:0; z-index:20;
  backdrop-filter: blur(12px);
  background: rgba(11,18,32,.65);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.topbar__inner{display:flex; align-items:center; justify-content:space-between; gap:16px}

.brand{display:flex; align-items:center; gap:12px}
.brand__logo{
  width:44px; height:44px; border-radius:14px;
  display:grid; place-items:center;
  background: linear-gradient(135deg, rgba(94,242,214,.9), rgba(122,166,255,.9));
  color:#06101f;
  font-weight:900;
  box-shadow: var(--shadow);
}
.brand__title{font-weight:800; letter-spacing:.2px}
.brand__sub{font-size:12px; color:var(--muted)}

.nav{display:flex; flex-wrap:wrap; gap:10px; align-items:center}
.nav a{padding:10px 12px; border-radius:12px; color:var(--muted)}
.nav a:hover{background: rgba(255,255,255,.06); color:var(--text)}

.footer{margin-top:22px; padding:18px 0; border-top:1px solid rgba(255,255,255,.06)}
.footer__inner{display:flex; justify-content:space-between; gap:12px; flex-wrap:wrap}
.muted{color:var(--muted)}
.h1{margin:0 0 6px; font-size:28px}
.h2{margin:0 0 8px; font-size:20px}
.h3{margin:0 0 8px; font-size:16px}
.hr{height:1px; background:rgba(255,255,255,.08); margin:14px 0}

.card{
  background: linear-gradient(180deg, rgba(18,26,46,.95), rgba(14,21,40,.95));
  border:1px solid rgba(255,255,255,.06);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding:18px;
}
.card--center{max-width:520px; margin:22px auto}

.grid{
  display:grid; gap:14px;
}
.grid--2{grid-template-columns:repeat(2, minmax(0,1fr))}
.grid--3{grid-template-columns:repeat(3, minmax(0,1fr))}
@media (max-width:860px){
  .grid--2,.grid--3{grid-template-columns:1fr}
  .topbar__inner{flex-direction:column; align-items:flex-start}
}

.btn{
  display:inline-flex; align-items:center; justify-content:center;
  gap:8px;
  padding:10px 14px;
  border-radius: 14px;
  border:1px solid rgba(255,255,255,.10);
  cursor:pointer;
  background: rgba(255,255,255,.04);
  color: var(--text);
  transition: transform .08s ease, background .12s ease;
  user-select:none;
}
.btn:hover{background: rgba(255,255,255,.08)}
.btn:active{transform: translateY(1px)}
.btn--primary{
  background: linear-gradient(135deg, rgba(94,242,214,.85), rgba(122,166,255,.85));
  border: none;
  color:#071226;
  font-weight:800;
}
.btn--ghost{background: transparent}

.badge{
  padding:6px 10px; border-radius:999px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.08);
  font-size:12px;
  color: var(--muted);
}

.form{display:grid; gap:10px; margin-top:12px}
.label{font-size:13px; color:var(--muted)}
.input, .select, textarea{
  width:100%;
  padding:12px 12px;
  background: rgba(0,0,0,.25);
  border:1px solid rgba(255,255,255,.10);
  color: var(--text);
  border-radius: 14px;
  outline:none;
}
textarea{min-height:90px; resize:vertical}
.input:focus,.select:focus,textarea:focus{border-color: rgba(94,242,214,.6); box-shadow:0 0 0 3px rgba(94,242,214,.12)}

.alert{
  padding:10px 12px; border-radius: 14px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
}
.alert--danger{border-color: rgba(255,91,107,.35); background: rgba(255,91,107,.10)}
.alert--ok{border-color: rgba(66,245,138,.30); background: rgba(66,245,138,.08)}

.table-wrap{overflow:auto; border-radius: var(--radius2); border:1px solid rgba(255,255,255,.06)}
.table{
  width:100%;
  border-collapse:separate;
  border-spacing:0;
  font-size:14px;
  min-width:720px;
}
.table th, .table td{
  padding:10px 10px;
  border-bottom: 1px solid rgba(255,255,255,.06);
  vertical-align:top;
}
.table thead th{
  position:sticky; top:0;
  background: rgba(14,21,40,.95);
  text-align:left;
  font-weight:800;
}
.table tbody tr:hover{background: rgba(255,255,255,.03)}
.table td.small{font-size:12px; color:var(--muted)}
.table .right{text-align:right}

.status-pill{
  display:inline-flex; align-items:center; justify-content:center;
  padding:6px 10px; border-radius:999px;
  font-weight:800; font-size:12px;
  border:1px solid rgba(255,255,255,.08);
}
.st-HADIR{background: rgba(66,245,138,.10); border-color: rgba(66,245,138,.25)}
.st-SAKIT{background: rgba(255,209,102,.10); border-color: rgba(255,209,102,.30)}
.st-IJIN{background: rgba(122,166,255,.12); border-color: rgba(122,166,255,.26)}
.st-ALPA{background: rgba(255,91,107,.12); border-color: rgba(255,91,107,.30)}
.st-DISPENSASI{background: rgba(94,242,214,.12); border-color: rgba(94,242,214,.25)}

.btn-group{display:flex; flex-wrap:wrap; gap:6px}
.btn-mini{
  padding:7px 10px; border-radius:12px;
  font-size:12px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
  color: var(--muted);
}
.btn-mini.active{background: rgba(255,255,255,.10); color: var(--text); border-color: rgba(94,242,214,.35)}

.brand__logo{
  width: 64px;
  height: 64px;
  border-radius: 12px;
  overflow: hidden;
  display:flex;
  align-items:center;
  justify-content:center;
}

.brand__logo-img{
  width: 100%;
  height: 100%;
  object-fit: contain; /* logo tidak gepeng */
  display:block;
}
