
/* Admin Panel Styles (scoped to admin page only because only admin.php links this file) */

/* CSS variables for quick theme tuning */
:root {
  --bg: #0e1621;
  --bg-card: #131f2c;
  --bg-card-elev: #172535;
  --text: #e6edf3;
  --muted: #9fb2c8;
  --brand: #2f81f7;
  --brand-600: #2566c7;
  --green: #3fb950;
  --red: #f85149;
  --orange: #ffa657;
  --border: #233245;
  --shadow: 0 6px 20px rgba(0,0,0,.35);
  --radius: 14px;
  --radius-sm: 10px;
  --radius-xs: 8px;
  --focus: 0 0 0 3px rgba(47,129,247,.35);
  --font: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
}

html, body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
}

/* Layout */
.container {
  max-width: 1100px;
  margin: 24px auto;
  padding: 0 16px;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
  margin: 16px 0;
}

.card h2 {
  margin: 0 0 12px;
  font-size: 20px;
  letter-spacing: .2px;
}

/* Table */
.table {
  width: 100%;
  border-collapse: collapse;
}

.table thead th {
  text-align: left;
  font-weight: 600;
  font-size: 13px;
  color: var(--muted);
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
}

.table tbody td {
  padding: 12px;
  border-bottom: 1px solid rgba(255,255,255,.04);
}

/* Forms */
form.inline {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.score-compact {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 6px 0;
}

.score-compact .num {
  width: 60px;
}

.coef-form {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.row-actions {
  display: flex;
  gap: 8px;
}

/* Controls */
input[type="number"],
input[type="password"],
input[type="text"],
select {
  background: var(--bg-card-elev);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  padding: 8px 10px;
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease, background .2s ease;
}

input[type="number"]:focus,
input[type="password"]:focus,
input[type="text"]:focus,
select:focus {
  border-color: var(--brand);
  box-shadow: var(--focus);
}

/* Buttons */
.btn {
  appearance: none;
  border: 1px solid var(--border);
  background: var(--bg-card-elev);
  color: var(--text);
  padding: 8px 14px;
  border-radius: var(--radius-xs);
  cursor: pointer;
  transition: transform .02s ease, background .15s ease, border-color .15s ease, box-shadow .15s ease;
  line-height: 1.2;
}

.btn:hover { background: #1e2d40; border-color: #2b405a; }
.btn:active { transform: translateY(1px); }

.btn.small { padding: 6px 10px; font-size: 13px; }
.btn.primary { background: var(--brand); border-color: var(--brand); }
.btn.primary:hover { background: var(--brand-600); border-color: var(--brand-600); }
.btn.danger { background: #3a0f12; border-color: #55181c; color: #ffb3b3; }
.btn.danger:hover { background: #57171b; border-color: #7a2228; }

/* Badges / statuses */
.badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  letter-spacing: .2px;
  border: 1px solid var(--border);
  background: #1a2838;
  color: var(--muted);
}

.badge.scheduled { background: #1a2636; color: #9fb2c8; }
.badge.ongoing   { background: #0c2a15; color: #89d29a; border-color: #214a2f; }
.badge.finished  { background: #2b1a1a; color: #ffb4b4; border-color: #5c2b2b; }

/* Helpers */
.muted { color: var(--muted); }
.sep { opacity: .7; padding: 0 2px; }
.bo { display: inline-flex; align-items: center; gap: 6px; }

/* Tables: zebra for readability */
.table tbody tr:nth-child(odd) td {
  background: rgba(255,255,255,.02);
}

/* Responsive tweaks */
@media (max-width: 720px) {
  .score-compact .num { width: 48px; }
  .table thead { display: none; }
  .table tbody tr { display: grid; gap: 6px; padding: 10px; border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 10px; }
  .table tbody td { border-bottom: none; padding: 4px 0; }
}
