/* ========== KEYFRAMES ========== */

/* Page content entry */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Sidebar items entry */
@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-12px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Fade in */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Scale in */
@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Glow pulse for active elements */
@keyframes pulseGlow {
  0%, 100% {
    box-shadow: 0 0 8px rgba(59, 130, 246, 0.2);
  }
  50% {
    box-shadow: 0 0 16px rgba(59, 130, 246, 0.4);
  }
}

/* Gradient shift for backgrounds */
@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* Subtle float for KPI icons */
@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-3px);
  }
}

/* Shimmer loading effect */
@keyframes shimmer {
  0% {
    background-position: -200% center;
  }
  100% {
    background-position: 200% center;
  }
}

/* Theme toggle icon rotation */
@keyframes rotateTheme {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Progress bar gradient animation */
@keyframes progressGlow {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 200% 50%;
  }
}

/* Toast bounce in */
@keyframes slideInBounce {
  0% {
    transform: translateX(120%);
    opacity: 0;
  }
  60% {
    transform: translateX(-4px);
    opacity: 1;
  }
  80% {
    transform: translateX(2px);
  }
  100% {
    transform: translateX(0);
    opacity: 1;
  }
}

/* Toast out */
@keyframes slideOutRight {
  from {
    transform: translateX(0);
    opacity: 1;
  }
  to {
    transform: translateX(120%);
    opacity: 0;
  }
}

/* Badge alert pulse */
@keyframes badgePulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}

/* Mesh background movement */
@keyframes meshMove {
  0% {
    transform: translate(0, 0) scale(1);
  }
  33% {
    transform: translate(30px, -20px) scale(1.02);
  }
  66% {
    transform: translate(-15px, 15px) scale(0.98);
  }
  100% {
    transform: translate(0, 0) scale(1);
  }
}

/* ========== ANIMATION UTILITY CLASSES ========== */

/* Page content animation — faster */
#page-content {
  animation: fadeInUp 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Stagger children animation — faster, tighter */
.animate-stagger > * {
  opacity: 0;
  animation: fadeInUp 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.animate-stagger > *:nth-child(1) { animation-delay: 0.03s; }
.animate-stagger > *:nth-child(2) { animation-delay: 0.06s; }
.animate-stagger > *:nth-child(3) { animation-delay: 0.09s; }
.animate-stagger > *:nth-child(4) { animation-delay: 0.12s; }
.animate-stagger > *:nth-child(5) { animation-delay: 0.15s; }
.animate-stagger > *:nth-child(6) { animation-delay: 0.18s; }

/* Glassmorphism utility */
.glass {
  background: var(--glass-bg);
  backdrop-filter: var(--blur-md);
  -webkit-backdrop-filter: var(--blur-md);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
}

/* Glow on hover utility */
.glow-hover {
  transition: box-shadow var(--transition-base);
}

.glow-hover:hover {
  box-shadow: var(--glow-primary);
}

/* Float animation — DISABLED (no continuous animations) */
.animate-float {
  /* animation removed for professional look */
}

/* Shimmer loading — kept as skeleton loader only */
.shimmer {
  background: var(--bg-tertiary);
  border-radius: var(--radius-sm);
}

/* Spinning icon utility (for loading states with iconify-icon) */
.spin-icon {
  animation: spin 0.6s linear infinite;
  display: inline-flex;
}
/* Retours visuels des interactions de flotte. */
.fleet-map-marker.is-selected .fleet-marker-pin{box-shadow:0 0 0 5px #ffffffd9,0 0 0 8px #7560dd;border-color:#fff}.fleet-map-marker.is-selected .fleet-marker-label{background:#6550ce;color:#fff;border-color:#6550ce}.fleet-map-marker.is-selected .fleet-marker-label i{background:#fff}.kanban-card:active{cursor:grabbing}.kanban-col-body.drag-over{box-shadow:inset 0 0 0 2px #8d76ed;background:#8d76ed0c;transition:box-shadow .15s,background .15s}
@media(prefers-reduced-motion:reduce){.driver-profile,.vehicle-profile,.kanban-card,.kanban-col-body,.fleet-marker-pin,.fleet-marker-label{transition:none!important;animation:none!important}}
