/* ============================================================
   DLI FORUM 2026 — Espace admin
   Complète assets/style.css (mêmes variables de couleur)
============================================================ */

.admin-section { padding: 48px 0 80px; }

.admin-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 28px;
}
.admin-head h2 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(24px, 3vw, 32px);
  margin: 8px 0 0;
}

.admin-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 28px;
}
@media (max-width: 700px) { .admin-stats { grid-template-columns: repeat(2, 1fr); } }
.stat-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px 20px;
  box-shadow: 0 8px 20px -16px rgba(13, 20, 64, 0.3);
}
.stat-value {
  font-family: var(--display);
  font-weight: 800;
  font-size: 28px;
  color: var(--orange-500);
}
.stat-label {
  font-size: 12.5px;
  color: var(--ink-400);
  margin-top: 2px;
}

.admin-filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.admin-filters input[type=text],
.admin-filters select {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 11px 14px;
  font-family: var(--body);
  font-size: 14px;
  color: var(--ink-50);
}
.admin-filters input[type=text] { flex: 1; min-width: 220px; }
.admin-filters .btn-ghost { padding: 11px 20px; font-size: 14px; text-decoration: none; }

.admin-table-wrap {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: auto;
  box-shadow: 0 10px 30px -22px rgba(13, 20, 64, 0.35);
}
.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
  white-space: nowrap;
}
.admin-table th {
  text-align: left;
  background: var(--surface);
  color: var(--ink-200);
  font-weight: 600;
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
}
.admin-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  color: var(--ink-50);
  max-width: 240px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.admin-table tbody tr:hover { background: rgba(37, 84, 214, 0.03); }
.admin-empty { text-align: center; color: var(--ink-400); padding: 32px !important; white-space: normal; }

.badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}
.badge-orange { background: rgba(247, 148, 29, 0.12); color: var(--orange-600); }
.badge-blue { background: rgba(37, 84, 214, 0.1); color: var(--blue-500); }

/* ---------- Login ---------- */
.admin-login-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: var(--bg);
}
.admin-login-card {
  width: 100%;
  max-width: 400px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 40px 36px;
  box-shadow: 0 24px 60px -30px rgba(13, 20, 64, 0.3);
  text-align: center;
}
.admin-login-card h1 {
  font-family: var(--display);
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 8px;
}
.admin-login-sub {
  font-size: 13.5px;
  color: var(--ink-400);
  margin: 0 0 24px;
}
.admin-login-card .field { text-align: left; }
.admin-back-link {
  display: inline-block;
  margin-top: 20px;
  font-size: 13px;
  color: var(--ink-400);
  text-decoration: none;
}
.admin-back-link:hover { color: var(--orange-500); }
