* { box-sizing: border-box; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  margin: 0;
  background: #f1f5f9;
  color: #1e293b;
  line-height: 1.5;
}
.topbar {
  background: #0f172a;
  color: #f8fafc;
  padding: 12px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.topbar a { color: #94a3b8; text-decoration: none; margin-left: 16px; font-size: 14px; }
.topbar a:hover { color: #fff; }
.topbar .brand { font-weight: 700; font-size: 18px; color: #fff; margin-left: 0; }
.container { max-width: 1200px; margin: 24px auto; padding: 0 20px; }
.card {
  background: #fff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
  margin-bottom: 20px;
}
.grid-2 { display: grid; grid-template-columns: 2fr 1fr; gap: 20px; }
@media (max-width: 900px) { .grid-2 { grid-template-columns: 1fr; } }
input[type="text"], input[type="password"], select, textarea {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid #cbd5e1;
  border-radius: 5px;
  font-size: 14px;
  margin-top: 4px;
  margin-bottom: 12px;
}
button, .btn {
  display: inline-block;
  background: #2563eb;
  color: #fff;
  border: none;
  padding: 8px 14px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 14px;
  text-decoration: none;
}
button:hover, .btn:hover { background: #1d4ed8; }
.btn-secondary { background: #475569; }
.btn-secondary:hover { background: #334155; }
.btn-danger { background: #dc2626; }
.btn-danger:hover { background: #b91c1c; }
.btn-sm { padding: 5px 10px; font-size: 12px; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 10px 8px; border-bottom: 1px solid #e2e8f0; }
th { background: #f8fafc; font-weight: 600; color: #475569; }
.badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
}
.badge-green { background: #dcfce7; color: #166534; }
.badge-amber { background: #fef3c7; color: #92400e; }
.badge-blue { background: #dbeafe; color: #1e40af; }
.alert {
  padding: 10px 14px;
  border-radius: 6px;
  margin-bottom: 16px;
  background: #dbeafe;
  color: #1e40af;
}
.alert-error { background: #fee2e2; color: #991b1b; }
