:root {
  --bg: #0f172a;
  --card: #111827;
  --muted: #94a3b8;
  --line: #243041;
  --text: #e5eefc;
  --accent: #3b82f6;
  --success: #14532d;
  --error: #7f1d1d;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: linear-gradient(180deg, #08111f 0%, #0f172a 100%);
  color: var(--text);
}
a { color: #93c5fd; text-decoration: none; }
.auth-wrap {
  min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px;
}
.auth-card, .card {
  background: rgba(17,24,39,0.94);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.25);
}
.auth-card { width: 100%; max-width: 420px; padding: 28px; }
.layout { display: grid; grid-template-columns: 260px 1fr; min-height: 100vh; }
.sidebar {
  border-right: 1px solid var(--line); padding: 24px; background: rgba(8,17,31,0.9); position: sticky; top: 0; height: 100vh;
}
.brand { font-size: 24px; font-weight: 700; margin-bottom: 24px; }
.sidebar nav { display: grid; gap: 10px; }
.sidebar nav a { padding: 12px 14px; border-radius: 12px; background: rgba(255,255,255,0.02); }
.sidebar nav a:hover { background: rgba(59,130,246,0.12); }
.content { padding: 28px; }
.topbar h1 { margin: 0 0 6px; }
.topbar p { color: var(--muted); margin: 0 0 20px; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-bottom: 18px; }
.stat-card { padding: 20px; }
.stat { font-size: 32px; font-weight: 700; margin: 10px 0; }
.grid-two { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.card { padding: 20px; margin-bottom: 18px; }
.narrow-card { max-width: 680px; }
.table-wrap { overflow: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { color: #cbd5e1; font-size: 13px; text-transform: uppercase; }
.form-grid { display: grid; gap: 10px; }
input {
  width: 100%; padding: 12px 14px; border-radius: 12px; border: 1px solid #334155; background: #0b1220; color: white;
}
.btn {
  border: 0; background: var(--accent); color: white; padding: 12px 16px; border-radius: 12px; cursor: pointer; font-weight: 700;
}
.btn-outline { background: transparent; border: 1px solid #334155; }
.w-full { width: 100%; }
.flash { padding: 12px 14px; border-radius: 12px; margin-bottom: 16px; }
.flash.success { background: rgba(20,83,45,0.8); }
.flash.error { background: rgba(127,29,29,0.9); }
.search-bar { display: flex; gap: 12px; }
.search-bar input { flex: 1; }
.section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.audio-player { min-width: 260px; }
.logout-form { margin-top: 24px; }
small, p { color: var(--muted); }
@media (max-width: 1100px) {
  .cards, .grid-two { grid-template-columns: 1fr; }
}
@media (max-width: 820px) {
  .layout { grid-template-columns: 1fr; }
  .sidebar { position: static; height: auto; border-right: 0; border-bottom: 1px solid var(--line); }
}
