/* Battery 360 Showcase — Animations */

@keyframes shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

@keyframes amber-pulse {
  0%, 100% { box-shadow: 0 0 12px rgba(245, 158, 11, 0.2); }
  50%       { box-shadow: 0 0 28px rgba(245, 158, 11, 0.55); }
}

@keyframes node-pulse {
  0%, 100% { r: 0.5; opacity: 0.9; }
  50%       { r: 0.9; opacity: 0.5; }
}

@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(var(--ticker-shift)); }
}

@keyframes fade-in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.vehicle-card.anomaly {
  animation: amber-pulse 2.4s ease-in-out infinite;
}

.vehicle-node.active {
  animation: node-pulse 2s ease-in-out infinite;
}

.screen.active {
  animation: fade-in 0.45s ease both;
}

/* Leaflet marker pulse for anomaly vehicles */
.leaflet-marker-anomaly {
  animation: amber-pulse 2.4s ease-in-out infinite;
  border-radius: 50% !important;
}
