/* Onboarding Wizard Animations and Transitions */

/* Step transition animations */
.wizard-step-transition {
  transition: all 0.3s ease-in-out;
}

/* Progress bar smooth animation */
.wizard-progress-bar {
  transition: width 0.5s ease-out;
}

/* Step indicator transitions */
.wizard-step-indicator {
  transition: all 0.3s ease-in-out;
}

/* Loading state for buttons */
.wizard-button-loading {
  position: relative;
  pointer-events: none;
}

.wizard-button-loading::after {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  top: 50%;
  left: 50%;
  margin-left: -8px;
  margin-top: -8px;
  border: 2px solid #ffffff;
  border-radius: 50%;
  border-top-color: transparent;
  animation: wizard-spinner 0.6s linear infinite;
}

@keyframes wizard-spinner {
  to {
    transform: rotate(360deg);
  }
}

/* Fade in animation for validation messages */
@keyframes wizard-fade-in {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.wizard-validation-message {
  animation: wizard-fade-in 0.3s ease-out;
}

/* Pulse animation for active step */
@keyframes wizard-pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}

.wizard-step-active {
  animation: wizard-pulse 2s ease-in-out infinite;
}

/* Step completion animation */
@keyframes wizard-check-scale {
  0% {
    transform: scale(0);
  }
  50% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
  }
}

.wizard-step-completed-icon {
  animation: wizard-check-scale 0.3s ease-out;
}

/* Slide transition for step content */
@keyframes wizard-slide-in {
  from {
    opacity: 0;
    transform: translateX(20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.wizard-step-content {
  animation: wizard-slide-in 0.4s ease-out;
}

/* Error shake animation */
@keyframes wizard-shake {
  0%, 100% {
    transform: translateX(0);
  }
  10%, 30%, 50%, 70%, 90% {
    transform: translateX(-5px);
  }
  20%, 40%, 60%, 80% {
    transform: translateX(5px);
  }
}

.wizard-error-shake {
  animation: wizard-shake 0.5s ease-in-out;
}

/* Success celebration animation */
@keyframes wizard-success-bounce {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

.wizard-success-celebration {
  animation: wizard-success-bounce 0.6s ease-in-out;
}
