* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: #f4f5f7;
  color: #1c1e21;
}
a { color: #2456ff; text-decoration: none; }
a:hover { text-decoration: underline; }

.admin-shell { display: flex; min-height: 100vh; }

.admin-sidebar {
  width: 220px;
  background: #14161a;
  color: #fff;
  display: flex;
  flex-direction: column;
  padding: 24px 0;
  flex-shrink: 0;
}
.admin-brand { font-weight: 700; letter-spacing: 0.06em; padding: 0 24px 24px; font-size: 15px; }
.admin-brand span { display: block; font-weight: 400; opacity: 0.55; font-size: 12px; letter-spacing: 0.08em; margin-top: 2px; }
.admin-sidebar nav { display: flex; flex-direction: column; flex: 1; }
.admin-sidebar nav a {
  color: #c8cad0;
  padding: 12px 24px;
  font-size: 14px;
}
.admin-sidebar nav a:hover { background: #1f2228; text-decoration: none; color: #fff; }
.admin-sidebar nav a.active { background: #2456ff; color: #fff; }
.admin-logout { padding: 12px 24px; font-size: 13px; color: #9a9da5; }
.admin-logout:hover { color: #fff; }

.admin-main { flex: 1; padding: 32px 40px; max-width: 980px; }

h1 { font-size: 22px; margin: 0 0 6px; }
h2 { font-size: 17px; margin: 0 0 16px; }
.admin-subtitle { color: #666; margin: 0 0 28px; font-size: 14px; }

.admin-flash { padding: 12px 16px; border-radius: 6px; margin-bottom: 20px; font-size: 14px; }
.admin-flash-success { background: #e5f7e9; color: #146c2e; border: 1px solid #b6e6c2; }
.admin-flash-error { background: #fdecec; color: #a3271b; border: 1px solid #f5c2bd; }

.admin-toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }

.btn {
  display: inline-block;
  padding: 9px 16px;
  border-radius: 6px;
  background: #2456ff;
  color: #fff;
  border: none;
  font-size: 14px;
  cursor: pointer;
}
.btn:hover { background: #1a41d1; text-decoration: none; }
.btn-secondary { background: #e6e7eb; color: #1c1e21; }
.btn-secondary:hover { background: #d7d9de; }
.btn-danger { background: #d93025; }
.btn-danger:hover { background: #b3261e; }
.btn-sm { padding: 5px 10px; font-size: 12px; }

table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 8px; overflow: hidden; box-shadow: 0 1px 3px rgba(0,0,0,0.06); }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid #eee; font-size: 14px; vertical-align: top; }
th { background: #fafafa; font-weight: 600; color: #444; font-size: 12px; text-transform: uppercase; letter-spacing: 0.03em; }
tr:last-child td { border-bottom: none; }
.row-actions { white-space: nowrap; }
.row-actions form { display: inline; }
.status-pill { display: inline-block; padding: 2px 9px; border-radius: 100px; font-size: 11px; font-weight: 600; text-transform: uppercase; }
.status-active { background: #e5f7e9; color: #146c2e; }
.status-inactive { background: #f1f1f2; color: #777; }

.admin-card { background: #fff; border-radius: 8px; padding: 28px; box-shadow: 0 1px 3px rgba(0,0,0,0.06); max-width: 640px; }

label { display: block; font-size: 13px; font-weight: 600; margin: 16px 0 6px; color: #333; }
label:first-of-type { margin-top: 0; }
input[type=text], input[type=email], input[type=password], input[type=number], textarea, select {
  width: 100%;
  padding: 9px 11px;
  border: 1px solid #d5d7dc;
  border-radius: 6px;
  font-size: 14px;
  font-family: inherit;
}
textarea { resize: vertical; }
.field-hint { font-size: 12px; color: #888; margin-top: 4px; }
.form-actions { margin-top: 24px; display: flex; gap: 10px; }

.login-shell { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: #14161a; }
.login-card { background: #fff; padding: 36px; border-radius: 10px; width: 320px; }
.login-card h1 { font-size: 18px; margin-bottom: 4px; }
.login-card p { color: #888; font-size: 13px; margin-top: 0; margin-bottom: 20px; }
.login-error { background: #fdecec; color: #a3271b; border: 1px solid #f5c2bd; padding: 10px 12px; border-radius: 6px; font-size: 13px; margin-bottom: 16px; }

.dashboard-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; max-width: 640px; }
.dashboard-tile { background: #fff; border-radius: 8px; padding: 20px; box-shadow: 0 1px 3px rgba(0,0,0,0.06); }
.dashboard-tile .count { font-size: 30px; font-weight: 700; }
.dashboard-tile .label { color: #777; font-size: 13px; margin-top: 4px; }
