/* Pages Tableau de bord, Historique de modération (filtres, avertissements) et Activité en cours.
   Ordre de chargement fixé dans index.html (ex-style.css découpé : ne pas le changer). */
/* ---------- Tableau de bord ---------- */
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}
.dashboard-card {
  position: relative;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 22px 22px 20px;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3);
}
.dashboard-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--violet) 60%, transparent);
  opacity: 0.5;
}
.dashboard-card-icon { font-size: 22px; margin-bottom: 10px; }
.dashboard-card-value { font-family: var(--font-display); font-size: 32px; font-weight: 800; line-height: 1.1; }
.dashboard-card-title { color: var(--text-muted); font-size: 13px; margin-top: 4px; }
.dashboard-card-link { margin-top: 10px; padding: 0; }
.dashboard-card-list { grid-column: span 2; }
.dashboard-list { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.dashboard-list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 8px 10px;
  background: var(--bg-elevated-2);
  border-radius: 8px;
}
.dashboard-list-name { font-weight: 700; }
/* Ligne nom+méta d'une entrée d'activité : occupe l'espace restant et garde
   nom/méta écartés comme avant l'ajout du lien Discord (3e enfant du li). */
.dashboard-list-info { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex: 1; min-width: 0; }
/* Lien "Ouvrir sur Discord" (Activité en cours) : réutilise .btn-icon mais pas
   son survol rouge (pensé pour une suppression, pas une navigation). */
.btn-icon.btn-icon-link:hover { color: var(--cyan); border-color: var(--border); }

/* ---------- Filtres (historique de modération) ---------- */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}
.filter-field { display: flex; flex-direction: column; gap: 6px; }
.filter-field label { font-size: 12px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.04em; }
.filter-field select, .filter-field input[type="date"] { min-width: 150px; }
.member-search-wrap { display: flex; align-items: center; gap: 6px; position: relative; min-width: 220px; }
.member-search-wrap input { width: 100%; }
.csv-export-row { display: flex; justify-content: flex-end; margin: -8px 0 12px; }
.csv-export-link { text-decoration: none; }
.csv-export-link:hover { text-decoration: underline; }
.results-slot { min-height: 60px; }

/* Tableau d'avertissements : colonnes dédiées (date/membre/raison/par/type/
   action) plutôt que la grille générique auto-fit des subtables de
   configuration — une raison en texte libre a besoin de bien plus de place
   que les autres colonnes. */
.warnings-row { grid-template-columns: 150px 150px 1fr 150px 90px 44px; }
.badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.badge-auto { background: rgba(255, 56, 96, 0.14); color: #ff8fa3; }
.badge-manual { background: rgba(0, 229, 255, 0.14); color: var(--cyan); }

/* ---------- Activité en cours ---------- */
.activity-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; }
.activity-card-header { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.activity-card-header h3 { margin: 0; font-size: 16px; }
.activity-card-icon { font-size: 18px; }
.activity-card-count {
  margin-left: auto;
  background: var(--bg-elevated-2);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 2px 10px;
  font-size: 13px;
  font-weight: 700;
  color: var(--cyan);
}

/* Formulaires "lancer un concours" / "créer un sondage" en bas des cartes
   Activité — même esprit que .member-profile-warn (séparateur + pile verticale). */
.activity-form {
  margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--border);
  display: flex; flex-direction: column; gap: 8px;
}
.activity-form h4 { margin: 0 0 2px; font-size: 13px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.04em; }
.activity-form .btn { align-self: flex-start; }
.activity-form-channel select { width: 100%; }

/* Ligne titre + action (ex. "Activité en cours" + bouton "Vérifier maintenant") */
.panel-header-top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.panel-header-top h2 { margin: 0; }

/* Section "Terminés récemment" (historique) sous les cartes actives de la page Activité */
.activity-history-title {
  margin: 28px 0 14px; padding-top: 20px; border-top: 1px solid var(--border);
  font-size: 13px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.04em;
}

