/* =============================================================================
 * alerts.css — styles du moteur d'alertes (dashboard_alerts_engine.js)
 * Namespacé .gca- pour éviter toute collision. N'altère PAS le positionnement
 * des markers (uniquement box-shadow/outline → pas de transform).
 * ============================================================================= */

/* --- anneau pulsant sur le marker d'un véhicule en infraction (sur-vitesse) --- */
.maplibregl-marker.gca-alert-ring,
.gca-alert-ring {
  border-radius: 50%;
  animation: gcaAlertPulse 1.1s ease-out infinite;
  z-index: 50;
}
@keyframes gcaAlertPulse {
  0%   { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.65); }
  70%  { box-shadow: 0 0 0 14px rgba(239, 68, 68, 0); }
  100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

/* --- liste « Alertes actives » (#alertsList, onglet Alertes) --- */
.gca-active-alert {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 11px;
  margin: 6px 0;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border-left: 3px solid #64748b;
}
.gca-active-alert .gca-aa-icon { font-size: 18px; line-height: 1; }
.gca-active-alert .gca-aa-body { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.gca-active-alert .gca-aa-body strong { color: #e2e8f0; font-size: 13px; }
.gca-active-alert .gca-aa-veh { color: #94a3b8; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gca-active-alert .gca-aa-time { color: #64748b; font-size: 11px; white-space: nowrap; }
.gca-active-alert.gca-prio-critical { border-left-color: #ef4444; background: rgba(239, 68, 68, 0.10); }
.gca-active-alert.gca-prio-high     { border-left-color: #f97316; background: rgba(249, 115, 22, 0.08); }
.gca-active-alert.gca-prio-medium   { border-left-color: #f59e0b; background: rgba(245, 158, 11, 0.07); }
.gca-active-alert.gca-prio-low      { border-left-color: #10b981; }

/* --- panneau de config injecté (#gca-alerts-cfg) --- */
#gca-alerts-cfg .gca-cfg-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 14px;
  margin: 8px 0;
}
#gca-alerts-cfg .gca-cfg-row {
  display: flex; align-items: center; gap: 8px;
  color: #cbd5e1; font-size: 13px;
}
#gca-alerts-cfg .gca-cfg-num {
  display: flex; align-items: center; gap: 6px;
  color: #cbd5e1; font-size: 12px; flex-wrap: wrap;
}
#gca-alerts-cfg .gca-cfg-num input[type="number"],
#gca-alerts-cfg .gca-cfg-num input[type="time"] {
  width: 72px;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #e2e8f0;
  border-radius: 6px;
  padding: 3px 6px;
  font-size: 12px;
}
#gca-alerts-cfg .gca-cfg-num span { color: #64748b; font-size: 11px; }
#gca-alerts-cfg .gca-cfg-note {
  color: #94a3b8; font-size: 11px; line-height: 1.4; margin-top: 8px;
  padding: 8px 10px; background: rgba(59, 130, 246, 0.08);
  border-radius: 8px; border: 1px solid rgba(59, 130, 246, 0.18);
}
