:root {
  --bg: #f5f7fb;
  --surface: #ffffff;
  --text: #1f2937;
  --muted: #6b7280;
  --accent: #4f46e5;
  --success: #16a34a;
  --danger: #dc2626;
}

body.dark {
  --bg: #0b1220;
  --surface: #121a2b;
  --text: #f3f4f6;
  --muted: #9ca3af;
  --accent: #818cf8;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: Inter, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
}
.app-shell { display: flex; min-height: 100vh; }
.sidebar {
  width: 260px;
  background: var(--surface);
  padding: 20px;
  border-right: 1px solid #e5e7eb;
}
.sidebar nav { display: flex; flex-direction: column; gap: 10px; }
.sidebar a {
  text-decoration: none;
  color: var(--text);
  padding: 10px;
  border-radius: 10px;
}
.sidebar a:hover { background: rgba(79, 70, 229, 0.1); }
.content { flex: 1; padding: 24px; }
.content.full { max-width: 480px; margin: 30px auto; }
.toolbar { display: flex; justify-content: flex-end; gap: 10px; margin-bottom: 16px; }
.card {
  background: var(--surface);
  padding: 20px;
  border-radius: 14px;
  box-shadow: 0 6px 30px rgba(2, 6, 23, 0.08);
  margin-bottom: 16px;
}
.grid { display: grid; gap: 16px; }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.stat { font-size: 28px; font-weight: bold; }
form { display: grid; gap: 12px; }
input, select, textarea, button {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid #d1d5db;
  background: var(--surface);
  color: var(--text);
}
button {
  background: var(--accent);
  color: white;
  border: none;
  cursor: pointer;
}
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 10px; border-bottom: 1px solid #e5e7eb; }
.badge { padding: 4px 8px; border-radius: 999px; font-size: 12px; }
.badge-pass { background: #dcfce7; color: #166534; }
.badge-fail { background: #fee2e2; color: #991b1b; }
.toast {
  padding: 10px 12px;
  border-radius: 10px;
  margin-bottom: 12px;
}
.toast-success { background: #dcfce7; color: #166534; }
.toast-error { background: #fee2e2; color: #991b1b; }
@media (max-width: 768px) {
  .app-shell { flex-direction: column; }
  .sidebar { width: 100%; }
}
