/* Custom tweaks on top of Tailwind */
:root { 
  color-scheme: light;
  --primary-color: #1876fb;
  --shadow-color: rgba(183, 213, 255, 0.5);
}

html, body { 
  height: 100%;
  scroll-behavior: smooth;
}

/* Smoother focus for keyboard users */
.focus-ring {
  outline: none;
  box-shadow: 0 0 0 4px rgb(14 165 233 / 0.15);
}

/* Reduce tap highlight on mobile */
* { -webkit-tap-highlight-color: transparent; }

/* Smooth animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse-shadow {
  0%, 100% {
    box-shadow: 0px 0px 100px 10px rgba(183, 213, 255, 0.3);
  }
  50% {
    box-shadow: 0px 0px 120px 20px rgba(183, 213, 255, 0.5);
  }
}

/* Apply animations */
section {
  animation: fadeIn 0.6s ease-out;
}

/* Enhanced button hover effects */
button {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Gradient text animation */
@keyframes gradient-shift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.gradient-text-animate {
  background-size: 200% 200%;
  animation: gradient-shift 3s ease infinite;
}

/* Loading spinner enhancement */
@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Card hover lift effect */
.card-hover {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Input focus glow */
input:focus, 
textarea:focus, 
select:focus {
  transition: all 0.3s ease;
}

/* Smooth dropdown animation */
#mode-dropdown {
  transition: opacity 0.2s ease, transform 0.2s ease;
  transform-origin: top right;
}

#mode-dropdown:not(.hidden) {
  animation: fadeIn 0.2s ease-out;
}

/* Result section animation */
#result-section:not(.hidden) {
  animation: fadeIn 0.4s ease-out;
}

/* Copy state animation */
#copy-state:not(.hidden) {
  animation: fadeIn 0.3s ease-out;
}


