:root {
  --lime: #c8f804;
  --cyan: #00d3fe;
  --green: #16a34a;
  --ink: #0f172a;
  --muted: #64748b;
  --bg: #f5f7fa;
  --card: #ffffff;
  --border: #e2e8f0;
  --sidebar: #0f172a;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: "Segoe UI", Inter, system-ui, sans-serif;
  background: var(--bg);
  color: var(--ink);
  min-height: 100vh;
}
a { color: var(--green); text-decoration: none; }
.layout { display: flex; min-height: 100vh; }
.sidebar {
  width: 240px;
  background: var(--sidebar);
  color: #fff;
  padding: 24px 16px;
  flex-shrink: 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
  margin-bottom: 28px;
}
.brand-mark {
  width: 32px; height: 32px; border-radius: 10px;
  background: linear-gradient(135deg, var(--lime), var(--cyan));
}
.nav a {
  display: block;
  color: #cbd5e1;
  padding: 10px 12px;
  border-radius: 10px;
  margin-bottom: 4px;
  font-size: 14px;
  font-weight: 600;
}
.nav a:hover, .nav a.active { background: #1e293b; color: #fff; }
.main { flex: 1; padding: 28px 32px; }
.top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}
h1 { font-size: 24px; margin: 0 0 6px; }
.sub { color: var(--muted); font-size: 14px; margin: 0; }
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 28px; }
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 18px;
}
.card .label { color: var(--muted); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.card .num { font-size: 28px; font-weight: 800; margin-top: 8px; }
table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 16px; overflow: hidden; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--border); font-size: 14px; }
th { background: #f8fafc; color: var(--muted); font-size: 12px; text-transform: uppercase; }
.btn {
  display: inline-block;
  background: linear-gradient(135deg, var(--lime), var(--cyan));
  color: #0f172a;
  font-weight: 700;
  border: 0;
  border-radius: 999px;
  padding: 10px 18px;
  cursor: pointer;
  font-size: 14px;
}
.btn-ghost { background: #fff; border: 1px solid var(--border); color: var(--ink); }
.input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  font-size: 15px;
}
.login-wrap {
  min-height: 100vh;
  display: grid;
  place-items: center;
  background: linear-gradient(160deg, #f8fff0, #eefbff);
}
.login-card {
  width: 380px;
  background: #fff;
  border-radius: 20px;
  padding: 32px;
  box-shadow: 0 20px 50px rgba(15,23,42,.08);
}
.err { color: #c2410c; font-size: 13px; font-weight: 600; margin: 8px 0 0; }
.badge { display: inline-block; padding: 3px 8px; border-radius: 999px; font-size: 11px; font-weight: 700; background: #ecfdf5; color: #166534; }
.search { margin-bottom: 16px; max-width: 320px; }
.avatar {
  display: inline-block;
  border-radius: 50%;
  object-fit: cover;
  background: #e2e8f0;
  vertical-align: middle;
}
img.avatar-sm,
.avatar-sm {
  width: 36px !important;
  height: 36px !important;
  max-width: 36px !important;
  max-height: 36px !important;
}
img.avatar-lg,
.avatar-lg {
  width: 112px;
  height: 112px;
  max-width: 112px;
  max-height: 112px;
  border: 3px solid #fff;
  box-shadow: 0 8px 24px rgba(15,23,42,.12);
}
table img {
  width: 36px;
  height: 36px;
  max-width: 36px;
  max-height: 36px;
  object-fit: cover;
  border-radius: 50%;
}
.avatar-ph {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, #c8f804, #00d3fe);
  color: #0f172a;
  font-weight: 800;
}
.name-cell { display: flex; align-items: center; gap: 10px; }
@media (max-width: 900px) {
  .layout { display: block; }
  .sidebar { width: auto; }
  .cards { grid-template-columns: 1fr 1fr; }
}
