* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

pre, code {
  font-family: 'Fira Code', 'Courier New', monospace;
}

.model-card {
  transition: all 0.2s ease;
}

.model-card:hover {
  transform: translateY(-2px);
}

.battle-card {
  transition: all 0.3s ease;
}

.battle-card:hover {
  transform: translateY(-4px);
}

.generate-button {
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.generate-button:hover:not(:disabled) {
  transform: scale(1.05);
}

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

.generate-button:hover:not(:disabled)::before {
  width: 300px;
  height: 300px;
}

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

.confetti-particle {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  animation: confetti-fall 2s ease-in forwards;
}

svg {
  max-width: 100%;
  max-height: 100%;
}

/* Scrollbar styling */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

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

::-webkit-scrollbar-thumb {
  background: #8B5CF6;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #7C3AED;
}

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

.loading-shimmer {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 1000px 100%;
  animation: shimmer 2s infinite;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .battle-card {
    margin-bottom: 1rem;
  }
  
  h1 {
    font-size: 2rem !important;
  }
  
  .generate-button {
    font-size: 1.125rem !important;
    padding: 1rem 2rem !important;
  }
}