/* Page Transition Animations */

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

@keyframes fadeOut {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}

/* Page enter animations */
.app-content .page {
  animation: fadeIn 0.3s ease-out;
}

/* Slide out animations */
.fade-out {
  animation: fadeOut 0.3s ease-in forwards !important;
}

@keyframes buttonPopRelease {
  0% {
    transform: scale(1);
  }
  95% {
    transform: scale(1.2);
  }
  100% {
    transform: scale(1.0);
  }
}

/* Smooth page transitions */
.app-content {
  position: relative;
}

/* Button animations */
button {
  position: relative;
  overflow: hidden;
}

button::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

button:active::before {
  width: 300px;
  height: 300px;
}

/* Input focus animations */
input[type="radio"],
input[type="checkbox"],
input[type="range"] {
  transition: all 0.3s ease;
}

input[type="radio"]:focus,
input[type="checkbox"]:focus {
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.3);
}

/* Label animations */
label {
  transition: all 0.3s ease;
}

label:active {
  transform: scale(0.98);
}

/* Hexagon animations */
.hexagon {
  transition: all 0.3s ease;
}

.hexagon:active {
  transform: scale(0.95);
}

/* Progress bar animation */
.progress-fill {
  position: relative;
}

.progress-fill::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

/* Responsive animations */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
