/* =============================================================
 * IFMT — Campus Barra do Garças - MT
 * Cursos: Inteligência Artificial e Informática
 * Orientador: Prof. Carlos David Rocha de Souza
 * Design System 2026 — animacoes.css
 * ============================================================= */

/* Rotação Contínua de Spinners */
@keyframes girar {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.anim-girar {
  animation: girar 0.8s linear infinite;
}

/* Pulso de Ponto de Status da API */
@keyframes pulsoStatus {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(53, 152, 48, 0.7);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 6px rgba(53, 152, 48, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(53, 152, 48, 0);
  }
}

.anim-pulso-status {
  animation: pulsoStatus 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Fade-In Up com Suavidade */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.anim-fade-in-up {
  animation: fadeInUp 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Efeito Shimmer de Carregamento / Esqueleto */
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.anim-shimmer {
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.03) 25%,
    rgba(255, 255, 255, 0.08) 50%,
    rgba(255, 255, 255, 0.03) 75%
  );
  background-size: 200% 100%;
  animation: shimmer 1.8s infinite;
}

/* Brilho de Borda (Border Glow Pulse) */
@keyframes glowBorda {
  0%, 100% {
    border-color: rgba(53, 152, 48, 0.3);
    box-shadow: 0 0 15px -3px rgba(53, 152, 48, 0.2);
  }
  50% {
    border-color: rgba(53, 152, 48, 0.6);
    box-shadow: 0 0 25px -3px rgba(53, 152, 48, 0.4);
  }
}

.anim-glow-borda {
  animation: glowBorda 3s ease-in-out infinite;
}

/* Animação do Medidor Circular SVG */
@keyframes preencherCirculo {
  from { stroke-dashoffset: 283; }
}

.anim-preencher-circulo {
  transition: stroke-dashoffset 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Rotação e Balanço Elegante da Ampulheta */
@keyframes ampulhetaGiro {
  0% { transform: rotate(0deg); }
  40% { transform: rotate(180deg); }
  50% { transform: rotate(180deg); }
  90% { transform: rotate(360deg); }
  100% { transform: rotate(360deg); }
}

.anim-ampulheta {
  animation: ampulhetaGiro 2.5s ease-in-out infinite;
  transform-origin: center;
}

/* Pulso Holográfico da IA Gemini */
@keyframes pulsoGemini {
  0%, 100% {
    box-shadow: 0 0 20px -5px rgba(99, 102, 241, 0.3), inset 0 0 15px rgba(99, 102, 241, 0.1);
    border-color: rgba(99, 102, 241, 0.3);
  }
  50% {
    box-shadow: 0 0 35px 2px rgba(139, 92, 246, 0.5), inset 0 0 25px rgba(139, 92, 246, 0.2);
    border-color: rgba(139, 92, 246, 0.6);
  }
}

.anim-pulso-gemini {
  animation: pulsoGemini 3s infinite ease-in-out;
}

