:root {
  --bg: #0f172a;
  --panel: #111827;
  --card: #1f2937;
  --card2: #243244;
  --text: #f8fafc;
  --muted: #cbd5e1;
  --accent: #22c55e;
  --accent2: #38bdf8;
  --danger: #ef4444;
  --warning: #f59e0b;
  --border: rgba(255,255,255,.08);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { max-width: 100%; overflow-x: hidden; overscroll-behavior-y: contain; }
body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: linear-gradient(180deg, #0f172a, #111827 45%, #0b1220);
  color: var(--text);
}
a { color: inherit; text-decoration: none; }
.container { width: min(1100px, 94%); margin: 0 auto; padding-bottom: 24px; }
.topbar {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 0; gap: 12px; flex-wrap: wrap;
}
.brand { font-weight: 700; font-size: 20px; }
.nav { display: flex; gap: 10px; flex-wrap: wrap; }
.nav a, .btn {
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 11px 14px;
  border-radius: 14px;
  display: inline-block;
  cursor: pointer;
}
.btn-primary { background: var(--accent); color: #052e16; font-weight: 700; }
.btn-secondary { background: var(--accent2); color: #082f49; font-weight: 700; }
.btn-danger { background: var(--danger); color: white; }
.hero, .card, .auth-box {
  background: rgba(31,41,55,.96);
  border: 1px solid var(--border);
  border-radius: 22px;
  box-shadow: 0 10px 30px rgba(0,0,0,.25);
}
.auth-wrap { min-height: 100vh; display:flex; align-items:center; justify-content:center; padding:24px 0; }
.auth-box { width:min(420px, 94%); padding: 24px; }
.auth-box h1 { margin-top: 0; font-size: 26px; }
.form-group { margin-bottom: 14px; }
label { display:block; margin-bottom: 7px; color: var(--muted); font-size: 14px; }
input, textarea, select {
  width: 100%; padding: 13px 14px; border-radius: 14px;
  border: 1px solid var(--border); background: #0b1220; color: var(--text);
}
textarea { min-height: 96px; resize: vertical; }
.grid { display: grid; gap: 16px; }
.stats { grid-template-columns: repeat(3, minmax(0,1fr)); }
.cards-2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.card { padding: 18px; }
.stat-title { color: var(--muted); font-size: 14px; }
.stat-value { font-size: 28px; font-weight: 700; margin-top: 10px; }
.muted { color: var(--muted); }
.alert {
  padding: 14px 16px; border-radius: 16px; margin: 14px 0;
  border: 1px solid var(--border); background: #132238;
}
.alert-success { background: #0f2d1b; }
.alert-warning { background: #3a2a0b; }
.table-responsive { overflow-x:auto; }
table { width:100%; border-collapse: collapse; }
th, td { padding: 12px; border-bottom: 1px solid var(--border); text-align:left; }
.badge {
  display:inline-block; padding: 7px 12px; border-radius: 999px; font-size: 12px; font-weight:700;
}
.badge-pending { background: rgba(245,158,11,.18); color: #fbbf24; }
.badge-approved { background: rgba(34,197,94,.18); color: #86efac; }
.section-title { margin: 24px 0 12px; font-size: 20px; }
.footer-space { height: 24px; }
@media (max-width: 768px) {
  .stats, .cards-2 { grid-template-columns: 1fr; }
  .stat-value { font-size: 24px; }
}

@media (max-width: 768px) {
  .topbar { align-items: flex-start; }
  .nav { width: 100%; }
  .nav a, .btn { width: 100%; text-align: center; }
  th, td { font-size: 14px; }
}
