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

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

@keyframes shimmer {
  0% { background-position: -1000px 0; }
  100% { background-position: 1000px 0; }
}

@keyframes confettiFall {
  0% {
    transform: translateY(-100vh) rotate(0deg);
    opacity: 1;
  }
  100% {
    transform: translateY(100vh) rotate(720deg);
    opacity: 0;
  }
}

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

.idea-card {
  animation: slideIn 0.5s ease-out;
}

.generate-button {
  position: relative;
  overflow: hidden;
}

.generate-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  animation: shimmer 2s infinite;
}

.meter-needle {
  width: 4px;
  height: 60px;
  background: red;
  transform-origin: bottom center;
  transition: transform 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  position: relative;
  box-shadow: 0 0 10px rgba(255, 0, 0, 0.5);
}

.meter-needle::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 16px;
  height: 16px;
  background: #333;
  border-radius: 50%;
  box-shadow: 0 0 5px rgba(0,0,0,0.3);
}

.subtitle-container {
  min-height: 2rem;
  transition: all 0.5s ease-in-out;
}

.confetti-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9999;
  overflow: hidden;
}

.confetti {
  position: absolute;
  font-size: 2rem;
  animation: confettiFall 3s linear forwards;
}

@media (max-width: 768px) {
  .meter-needle {
    height: 40px;
  }
}