* {
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.glass-card {
  background: rgba(13, 26, 45, 0.7);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(79, 209, 197, 0.2);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.preset-btn {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  background: rgba(10, 22, 40, 0.8);
  border: 1px solid rgba(79, 209, 197, 0.3);
  border-radius: 0.75rem;
  color: #81e6d9;
  cursor: pointer;
  transition: all 0.2s ease;
}

.preset-btn:hover {
  background: rgba(79, 209, 197, 0.2);
  border-color: rgba(79, 209, 197, 0.6);
  transform: translateY(-1px);
}

#snowfall {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.snowflake {
  position: absolute;
  top: -20px;
  color: rgba(255, 255, 255, 0.8);
  animation: fall linear infinite;
  text-shadow: 0 0 5px rgba(129, 230, 217, 0.5);
}

@keyframes fall {
  0% {
    transform: translateY(-20px) rotate(0deg);
  }
  100% {
    transform: translateY(100vh) rotate(360deg);
  }
}

.snowflake-spin {
  display: inline-block;
  animation: spin 2s linear infinite;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

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

::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.3);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb {
  background: rgba(79, 209, 197, 0.4);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(79, 209, 197, 0.6);
}

/* Mobile responsive */
@media (max-width: 768px) {
  .preset-btn {
    padding: 0.4rem 0.75rem;
    font-size: 0.75rem;
  }
}

/* Range slider styling */
input[type="range"] {
  height: 6px;
  border-radius: 3px;
  background: linear-gradient(to right, #0891b2, #06b6d4);
  cursor: pointer;
}

input[type="range"]::-webkit-slider-thumb {
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #22d3ee;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

/* Selection color */
::selection {
  background: rgba(79, 209, 197, 0.5);
  color: white;
}

/* Focus visible for accessibility */
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid #22d3ee;
  outline-offset: 2px;
}

/* Smooth transitions */
* {
  transition-property: background-color, border-color, color, opacity, transform;
  transition-duration: 150ms;
  transition-timing-function: ease-out;
}

/* Animation delay utility */
.delay-100 { animation-delay: 100ms; }
.delay-200 { animation-delay: 200ms; }
.delay-300 { animation-delay: 300ms; }