:root {
  color-scheme: light;
  --bg: #f7f7f8;
  --surface: #ffffff;
  --border: #e2e2e6;
  --text: #1c1c1f;
  --muted: #6b6b73;
  --accent: #2d5cf6;
  --accent-contrast: #ffffff;
  --danger: #d6373a;
  --success: #1f8a4c;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 15px;
  line-height: 1.5;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.topbar .brand { font-weight: 600; }

.container {
  max-width: 880px;
  margin: 32px auto;
  padding: 0 20px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 24px;
  margin-bottom: 20px;
}

h1, h2 { margin-top: 0; }

table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--border); font-size: 14px; }
th { color: var(--muted); font-weight: 500; }

label { display: block; margin: 12px 0 4px; font-size: 13px; color: var(--muted); }

input[type="text"], input[type="email"], input[type="password"],
input[type="datetime-local"], input[type="file"] {
  width: 100%;
  padding: 9px 11px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 14px;
}

button, .btn {
  display: inline-block;
  background: var(--accent);
  color: var(--accent-contrast);
  border: none;
  border-radius: 6px;
  padding: 9px 16px;
  font-size: 14px;
  cursor: pointer;
  text-decoration: none;
}

button.secondary { background: transparent; color: var(--text); border: 1px solid var(--border); }
button.danger, .btn.danger { background: var(--danger); }

.stat-value { font-size: 28px; font-weight: 600; line-height: 1.2; }
.stat-label { font-size: 13px; color: var(--muted); }

.warning-box {
  background: #fff7e5;
  border: 1px solid #f0d999;
  color: #7a5b00;
  border-radius: 8px;
  padding: 14px 16px;
  margin-bottom: 18px;
  font-size: 14px;
}

.form-actions { margin-top: 18px; }

.error { color: var(--danger); font-size: 14px; margin-top: 10px; }
.badge { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 12px; }
.badge.active { background: #e5f7ec; color: var(--success); }
.badge.suspended { background: #fbeaea; color: var(--danger); }
