/* Nathan's Meditation Generator - Custom Styles */

/* Enhanced form styling */
.form-input:focus {
  box-shadow: 0 0 0 3px rgba(147, 51, 234, 0.1);
}

/* Custom gradient backgrounds */
.bg-meditation-gradient {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* Animated elements */
@keyframes pulse-glow {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.8;
    transform: scale(1.05);
  }
}

.pulse-glow {
  animation: pulse-glow 2s ease-in-out infinite;
}

/* Loading spinner customization */
.fa-spinner {
  animation: fa-spin 2s infinite linear;
}

/* Progress bar animations */
.progress-bar {
  transition: width 0.5s ease-in-out;
}

/* Card hover effects */
.meditation-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.meditation-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Button effects */
.btn-generate {
  position: relative;
  overflow: hidden;
}

.btn-generate:before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.btn-generate:hover:before {
  left: 100%;
}

/* Status step animations */
.status-step {
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.status-step.active {
  transform: translateX(10px);
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(45deg, #667eea, #764ba2);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(45deg, #5a67d8, #6b46c1);
}

/* Responsive enhancements */
@media (max-width: 768px) {
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  
  .text-5xl {
    font-size: 2.5rem;
  }
  
  .grid {
    gap: 1rem;
  }
}

/* Loading dots animation */
@keyframes loading-dots {
  0%, 20% {
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
  80%, 100% {
    opacity: 0;
  }
}

.loading-dots span {
  animation: loading-dots 1.4s infinite ease-in-out;
}

.loading-dots span:nth-child(1) {
  animation-delay: -0.32s;
}

.loading-dots span:nth-child(2) {
  animation-delay: -0.16s;
}

/* Success/Error message animations */
.message-slide-up {
  animation: slideUp 0.5s ease-out;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Form field focus states */
input:focus, select:focus, textarea:focus {
  outline: none;
  ring-width: 2px;
  ring-color: rgba(147, 51, 234, 0.5);
  border-color: transparent;
}

/* Meditation type icons */
.meditation-icon {
  transition: transform 0.2s ease;
}

.meditation-icon:hover {
  transform: rotate(10deg) scale(1.1);
}

/* Status check marks */
.status-check {
  animation: checkScale 0.3s ease-out;
}

@keyframes checkScale {
  0% {
    transform: scale(0);
  }
  50% {
    transform: scale(1.2);
  }
  100% {
    transform: scale(1);
  }
}