/* Base styles */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
  --primary-color: #3498db;
  --secondary-color: #e74c3c;
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-color: black;
  color: white;
  overflow-x: hidden;
}

.font-geist-mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

/* Custom range input styling */
input[type=range] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 5px;
  outline: none;
}

input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  background: white;
  border-radius: 50%;
  cursor: pointer;
}

input[type=range]::-moz-range-thumb {
  width: 16px;
  height: 16px;
  background: white;
  border-radius: 50%;
  cursor: pointer;
}

input[type=color] {
  -webkit-appearance: none;
  appearance: none;
  border: none;
  padding: 0;
  cursor: pointer;
}

input[type=color]::-webkit-color-swatch-wrapper {
  padding: 0;
}

input[type=color]::-webkit-color-swatch {
  border: none;
  border-radius: 6px;
}

/* Visualizer container */
#visualizerContainer {
  min-height: 400px;
  height: 60vh;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

canvas {
  display: block;
  width: 100%;
  height: 100%;
}

/* Button and control styles */
button, select {
  transition: all 0.2s ease;
}

button:hover, select:hover {
  transform: translateY(-1px);
}

button:active, select:active {
  transform: translateY(1px);
}

/* Source active state */
.source-active {
  background-color: rgba(52, 152, 219, 0.5) !important;
}

/* Fullscreen styles */
.fullscreen {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  height: 100vh;
  z-index: 9999;
  background: black;
}

.fullscreen canvas {
  width: 100%;
  height: 100%;
}

.controls-overlay {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: rgba(0, 0, 0, 0.7);
  padding: 10px;
  border-radius: 8px;
  z-index: 10000;
}

/* Scroll styling for help modal */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* Help modal */
#helpModal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: none;
  align-items: center;
  justify-content: center;
}

/* Fade in animation */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.fade-in {
  animation: fadeIn 0.5s ease-in-out;
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

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

/* Animated background for liquid effect */
.liquid-bg {
  background: linear-gradient(-45deg, var(--primary-color), var(--secondary-color));
  background-size: 400% 400%;
  animation: gradient 15s ease infinite;
}

@keyframes gradient {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Glow effects */
.glow {
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.7));
}

.glow-blue {
  filter: drop-shadow(0 0 8px rgba(52, 152, 219, 0.7));
}

.glow-purple {
  filter: drop-shadow(0 0 8px rgba(155, 89, 182, 0.7));
}

.glow-red {
  filter: drop-shadow(0 0 8px rgba(231, 76, 60, 0.7));
}

/* Frosted glass effect for overlays */
.frosted {
  backdrop-filter: blur(10px);
  background-color: rgba(255, 255, 255, 0.1);
}
