* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  background: #f3f4f6;
  color: #111827;
}
a { color: #1d4ed8; text-decoration: none; }
.shell { min-height: 100vh; display: flex; }
.auth-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px; background: linear-gradient(135deg, #dbeafe, #ddd6fe, #fce7f3); }
.card { width: 100%; max-width: 460px; background: white; border-radius: 18px; box-shadow: 0 20px 45px rgba(15, 23, 42, 0.15); padding: 28px; }
.card h1 { margin-top: 0; margin-bottom: 12px; }
.muted { color: #6b7280; }
.field { display: block; margin-bottom: 16px; }
.field span { display: block; font-weight: 600; margin-bottom: 8px; }
.field input, .field textarea, .field select {
  width: 100%; padding: 12px 14px; border-radius: 10px; border: 1px solid #d1d5db; background: white; font-size: 14px;
}
.field textarea { min-height: 120px; resize: vertical; }
.actions { display: flex; gap: 12px; align-items: center; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: 10px; padding: 11px 16px; font-weight: 700; cursor: pointer;
}
.btn-primary { background: #2563eb; color: white; }
.btn-secondary { background: #e5e7eb; color: #111827; }
.alert { padding: 12px 14px; border-radius: 10px; margin-bottom: 16px; }
.alert-error { background: #fee2e2; color: #991b1b; }
.alert-success { background: #dcfce7; color: #166534; }
.layout { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; }
.sidebar { background: #111827; color: white; padding: 24px; }
.sidebar a { color: #cbd5e1; display: block; padding: 10px 0; }
.sidebar a.active { color: white; font-weight: 700; }
.content { padding: 28px; }
.panel { background: white; border-radius: 16px; box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08); padding: 24px; margin-bottom: 24px; }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.stat { background: #eff6ff; border-radius: 14px; padding: 18px; }
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { text-align: left; padding: 12px; border-bottom: 1px solid #e5e7eb; vertical-align: top; }
.badge { display: inline-block; padding: 4px 8px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.badge-admin { background: #dbeafe; color: #1d4ed8; }
.badge-user { background: #ecfccb; color: #3f6212; }
.checkbox-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.inline-form { display: inline; }
@media (max-width: 900px) {
  .layout { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; }
  .checkbox-grid { grid-template-columns: 1fr; }
}
