/* ==========================================================
   animations.css - Gerenciador Atlas - Animações
   ========================================================== */

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

/* Animated gradient background */
@keyframes gradientBG {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Floating particles */
@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50%       { transform: translateY(-20px) rotate(180deg); }
}

/* Slide up entrance */
@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Slide in from left */
@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  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.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Pulse glow */
@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 5px rgba(102, 126, 234, 0.3); }
  50%       { box-shadow: 0 0 20px rgba(102, 126, 234, 0.6); }
}

/* Shimmer loading */
@keyframes shimmer {
  0%   { background-position: -1000px 0; }
  100% { background-position: 1000px 0; }
}

/* Bounce */
@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-8px); }
}

/* Spin */
@keyframes spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* Gradient button shimmer */
@keyframes btnShimmer {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

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

.animate-slide-up {
  animation: slideUp 0.5s ease forwards;
}

.animate-slide-left {
  animation: slideInLeft 0.5s ease forwards;
}

.animate-fade-in {
  animation: fadeIn 0.4s ease forwards;
}

.animate-scale-in {
  animation: scaleIn 0.3s ease forwards;
}

/* Delay utilities */
.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }
.delay-400 { animation-delay: 0.4s; }
.delay-500 { animation-delay: 0.5s; }

/* ========================
   TABLE ROW ANIMATIONS
   ======================== */
.table tbody tr {
  animation: fadeIn 0.3s ease forwards;
}

/* ========================
   FLOATING PARTICLES
   ======================== */
.auth-page-wrapper .particle {
  position: absolute;
  border-radius: 50%;
  opacity: 0.15;
  pointer-events: none;
  animation: float linear infinite;
}

.auth-page-wrapper .particle:nth-child(1) {
  width: 80px;
  height: 80px;
  left: 10%;
  top: 20%;
  background: #667eea;
  animation-duration: 6s;
}

.auth-page-wrapper .particle:nth-child(2) {
  width: 50px;
  height: 50px;
  right: 15%;
  top: 30%;
  background: #764ba2;
  animation-duration: 8s;
  animation-delay: 1s;
}

.auth-page-wrapper .particle:nth-child(3) {
  width: 120px;
  height: 120px;
  left: 5%;
  bottom: 20%;
  background: #4facfe;
  animation-duration: 10s;
  animation-delay: 2s;
}

.auth-page-wrapper .particle:nth-child(4) {
  width: 40px;
  height: 40px;
  right: 10%;
  bottom: 25%;
  background: #00f2fe;
  animation-duration: 7s;
  animation-delay: 0.5s;
}

.auth-page-wrapper .particle:nth-child(5) {
  width: 60px;
  height: 60px;
  left: 40%;
  top: 10%;
  background: #38ef7d;
  animation-duration: 9s;
  animation-delay: 3s;
}

/* ========================
   HOVER TRANSITIONS
   ======================== */
.hover-lift {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

/* ========================
   LOADING SPINNER
   ======================== */
.spinner-gradient {
  width: 30px;
  height: 30px;
  border: 3px solid rgba(102, 126, 234, 0.15);
  border-top-color: #667eea;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  display: inline-block;
}

/* ========================
   TOAST NOTIFICATIONS
   ======================== */
.toastify {
  border-radius: 10px !important;
  font-family: 'Poppins', sans-serif !important;
  font-size: 0.875rem !important;
  font-weight: 500 !important;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15) !important;
}

/* ========================
   PROGRESS BARS
   ======================== */
.progress {
  border-radius: 20px;
  overflow: hidden;
  height: 8px;
  background: rgba(102, 126, 234, 0.1);
}

.progress-bar {
  background: var(--primary-gradient);
  animation: gradientBG 3s ease infinite;
  background-size: 200% 200%;
}
