:root {
  --bg: #0d1117;
  --panel: #161b22;
  --panel-2: #1f2937;
  --line: #2d3748;
  --text: #e5e7eb;
  --muted: #9ca3af;
  --accent: #60a5fa;
  --success: #34d399;
  --danger: #f87171;
  --warning: #fbbf24;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: "Kanit", system-ui, sans-serif;
  background: linear-gradient(180deg, #0b1020, #111827);
  color: var(--text);
}
.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 24px;
}
.card {
  background: rgba(22,27,34,.94);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 18px;
  box-shadow: 0 14px 40px rgba(0,0,0,.28);
  overflow: hidden;
}
.card-header, .card-body, .card-footer { padding: 20px; }
.grid { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.stat {
  background: linear-gradient(180deg, rgba(255,255,255,.02), rgba(255,255,255,.01));
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 16px;
  padding: 18px;
}
.stat .label { color: var(--muted); font-size: 14px; }
.stat .value { font-size: 28px; font-weight: 700; margin-top: 8px; }
.nav {
  display:flex; flex-wrap: wrap; gap:10px; align-items:center; justify-content:space-between;
  margin-bottom: 20px;
}
.nav .links { display:flex; flex-wrap: wrap; gap:10px; }
.btn, button {
  border: 0; border-radius: 12px; padding: 12px 16px; cursor: pointer;
  background: var(--accent); color: white; text-decoration: none; font-weight: 600;
}
.btn-outline { background: transparent; border: 1px solid var(--line); color: var(--text); }
.btn-danger { background: var(--danger); }
input, select {
  width: 100%; padding: 12px 14px; border-radius: 12px;
  border: 1px solid var(--line); background: #0f172a; color: var(--text);
}
label { display:block; margin-bottom:8px; color: var(--muted); }
.table-wrap { overflow-x:auto; }
table { width:100%; border-collapse: collapse; }
th, td { padding: 12px; border-bottom: 1px solid rgba(255,255,255,.06); text-align:left; }
th { color: var(--muted); font-weight: 500; }
.badge { display:inline-block; padding: 6px 10px; border-radius: 999px; font-size: 12px; }
.badge-success { background: rgba(52,211,153,.15); color: #86efac; }
.badge-warning { background: rgba(251,191,36,.15); color: #fde68a; }
.badge-danger { background: rgba(248,113,113,.15); color: #fca5a5; }
.flash { padding: 14px 16px; border-radius: 12px; margin-bottom: 16px; }
.flash-success { background: rgba(52,211,153,.12); color: #bbf7d0; }
.flash-error { background: rgba(248,113,113,.12); color: #fecaca; }
.text-muted { color: var(--muted); }
.text-right { text-align:right; }
.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 16px; }
.mt-4 { margin-top: 24px; }
.center { text-align:center; }
.login-wrap { min-height: 100vh; display:flex; align-items:center; justify-content:center; padding: 24px; }
.login-card { width:100%; max-width: 480px; }
.small { font-size: 13px; color: var(--muted); }
.code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
