:root {
  --bg: #f5f7fb;
  --card: #ffffff;
  --line: #d8dee9;
  --text: #1f2937;
  --muted: #6b7280;
  --green: #22c55e;
  --red: #ef4444;
  --blue: #3b82f6;
  --orange: #f59e0b;
  --gray: #9ca3af;
}
* { box-sizing: border-box; }
body { margin:0; font-family: Arial, Helvetica, sans-serif; background: var(--bg); color: var(--text); }
a { color: var(--blue); text-decoration: none; }
.container { max-width: 1300px; margin: 0 auto; padding: 20px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 16px; box-shadow: 0 2px 8px rgba(0,0,0,.04); }
.grid { display:grid; gap:16px; }
.grid-2 { grid-template-columns: 1.1fr .9fr; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.table { width:100%; border-collapse: collapse; }
.table th, .table td { padding: 10px; border-bottom: 1px solid var(--line); text-align:left; }
.btn, button, input[type=submit] {
  border:none; border-radius:12px; padding:12px 16px; cursor:pointer; font-weight:700;
  background: var(--blue); color:#fff;
}
.btn-secondary { background:#64748b; }
.btn-danger { background: var(--red); }
.btn-green { background: var(--green); }
.btn-orange { background: var(--orange); }
input[type=text], input[type=password], input[type=date], input[type=number], select, textarea {
  width:100%; padding:12px; border:1px solid var(--line); border-radius:10px; background:#fff;
}
label { display:block; font-weight:700; margin-bottom:6px; }
.form-row { margin-bottom:14px; }
.flash { padding:12px 14px; border-radius:12px; margin-bottom:15px; font-weight:700; }
.flash-success { background:#dcfce7; color:#166534; }
.flash-error { background:#fee2e2; color:#991b1b; }
.topbar { display:flex; justify-content:space-between; align-items:center; gap:16px; margin-bottom:18px; }
.eleves-list { display:grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap:12px; }
.eleve-btn {
  display:flex; justify-content:space-between; align-items:center; gap:8px;
  width:100%; padding:14px; font-size:18px; border-radius:14px; background:#fff; color:#111827; border:2px solid var(--line);
}
.eleve-btn.active { border-color: var(--blue); background:#eff6ff; }
.badge { display:inline-block; padding:4px 8px; border-radius:999px; font-size:12px; font-weight:700; }
.badge-blue { background:#dbeafe; color:#1d4ed8; }
.badge-green { background:#dcfce7; color:#166534; }
.badge-red { background:#fee2e2; color:#991b1b; }
.badge-gray { background:#e5e7eb; color:#374151; }
.drop-zone { min-height:110px; border:3px dashed var(--line); border-radius:16px; padding:16px; display:flex; flex-direction:column; justify-content:center; gap:8px; }
.zone-winner { border-color: #86efac; background:#f0fdf4; }
.zone-loser { border-color:#fca5a5; background:#fef2f2; }
.zone-referee { border-color:#93c5fd; background:#eff6ff; }
.zone-title { font-weight:700; font-size:20px; }
.zone-name { font-size:24px; font-weight:700; }
.muted { color: var(--muted); }
.actions { display:flex; gap:12px; flex-wrap:wrap; }
.small { font-size: 13px; }
.kpi { font-size:32px; font-weight:700; }
.login-wrap { max-width:420px; margin:80px auto; }
.tabs { display:flex; gap:10px; flex-wrap:wrap; margin-bottom:14px; }
.tabs a { padding:10px 14px; border-radius:10px; background:#e5e7eb; color:#111827; font-weight:700; }
.tabs a.active { background: var(--blue); color:#fff; }
@media (max-width: 900px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .eleves-list { grid-template-columns: 1fr; }
}
