/* Binaural Relaxation Mixer Styles */

.binaural-mixer {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  display: none;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.binaural-mixer.show {
  display: block;
  opacity: 1;
  pointer-events: auto;
}

.mixer-panel {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(64, 64, 64, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    min-width: 600px;
    color: #ffffff;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    pointer-events: auto;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

.mixer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 10px;
}

.mixer-header h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: #ffffff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

.mixer-close {
  background: none;
  border: none;
  color: #ffffff;
  font-size: 24px;
  cursor: pointer;
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background-color 0.2s;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

.mixer-close:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.mixer-channels {
  display: flex;
  gap: 20px;
  align-items: flex-end;
}

.channel {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 120px;
  min-height: 400px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.channel-header {
  font-size: 12px;
  font-weight: 500;
  margin-bottom: 15px;
  text-align: center;
  color: #cccccc;
  min-height: 30px;
  display: flex;
  align-items: center;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

.channel-controls {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}

.pan-control {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}

.pan-control label {
  font-size: 10px;
  color: #999999;
  text-transform: uppercase;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

.pan-knob {
  width: 40px;
  height: 40px;
  -webkit-appearance: none;
  appearance: none;
  background: linear-gradient(135deg, #333333, #555555);
  border-radius: 50%;
  border: 2px solid #666666;
  cursor: pointer;
  position: relative;
}

.pan-knob::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 6px;
  height: 6px;
  background: #ffffff;
  border-radius: 50%;
  cursor: pointer;
}

.pan-knob::-moz-range-thumb {
  width: 6px;
  height: 6px;
  background: #ffffff;
  border-radius: 50%;
  border: none;
  cursor: pointer;
}

.volume-control {
  height: 120px;
  display: flex;
  align-items: center;
}

.volume-slider {
  writing-mode: bt-lr; /* IE */
  -webkit-appearance: slider-vertical; /* WebKit */
  appearance: slider-vertical;
  width: 30px;
  height: 120px;
  background: linear-gradient(to top, #333333, #555555);
  outline: none;
  border-radius: 15px;
  cursor: pointer;
}

.volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 10px;
  background: #ffffff;
  border-radius: 5px;
  cursor: pointer;
}

.volume-slider::-moz-range-thumb {
  width: 20px;
  height: 10px;
  background: #ffffff;
  border-radius: 5px;
  border: none;
  cursor: pointer;
}

.play-button {
  background: linear-gradient(135deg, #2a2a2a, #4a4a4a);
  border: 2px solid #666666;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  color: #ffffff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: all 0.2s;
}

.play-button:hover {
  background: linear-gradient(135deg, #3a3a3a, #5a5a5a);
  border-color: #888888;
}

.play-button:active {
  transform: scale(0.95);
}

.fx-button {
  background: linear-gradient(135deg, #2a2a2a, #4a4a4a);
  border: 2px solid #666666;
  border-radius: 6px;
  padding: 8px 12px;
  color: #ffffff;
  cursor: pointer;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  transition: all 0.2s;
  min-width: 40px;
}

.fx-button:hover {
  background: linear-gradient(135deg, #3a3a3a, #5a5a5a);
  border-color: #888888;
}

.fx-led {
  width: 8px;
  height: 8px;
  background: #333333;
  border-radius: 50%;
  transition: background-color 0.2s;
}

.fx-led.active {
  background: #ff0000;
  box-shadow: 0 0 8px #ff0000;
}

/* Effects Channel */
.effects-channel {
  width: 120px;
  min-height: 400px;
  border-left: 2px solid rgba(255, 255, 255, 0.2);
  padding-left: 20px;
}

.effects-warning {
  font-size: 10px;
  color: #ff6b6b;
  text-align: center;
  margin-bottom: 15px;
  padding: 8px;
  background: rgba(255, 107, 107, 0.1);
  border: 1px solid rgba(255, 107, 107, 0.3);
  border-radius: 4px;
  line-height: 1.3;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

.effects-controls {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
}

.effect-button {
  background: linear-gradient(135deg, #2a2a2a, #4a4a4a);
  border: 2px solid #666666;
  border-radius: 6px;
  padding: 8px 16px;
  color: #ffffff;
  cursor: pointer;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s;
  min-width: 60px;
  justify-content: center;
}

.effect-button:hover {
  background: linear-gradient(135deg, #3a3a3a, #5a5a5a);
  border-color: #888888;
}

.effect-led {
  width: 8px;
  height: 8px;
  background: #333333;
  border-radius: 50%;
  transition: background-color 0.2s;
}

.effect-led.active {
  background: #ff0000;
  box-shadow: 0 0 8px #ff0000;
}

.master-volume {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.master-volume label {
  font-size: 10px;
  color: #999999;
  text-transform: uppercase;
  font-weight: 600;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

.master-slider {
  height: 80px;
}

/* Responsive Design */
@media (max-width: 768px) {
  .mixer-panel {
    min-width: 90vw;
    padding: 15px;
  }
  
  .mixer-channels {
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 10px;
  }
  
  .channel {
    min-width: 60px;
    flex-shrink: 0;
  }
  
  .volume-control {
    height: 80px;
  }
  
  .volume-slider {
    height: 80px;
  }
  
  .effects-channel {
    min-width: 100px;
  }
}

/* Animation for LED pulsing */
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

.fx-led.active,
.effect-led.active {
  animation: pulse 2s infinite;
}

/* File Selection Styles */
.file-selector {
  margin-bottom: 10px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 6px;
  padding: 8px;
}

.file-window {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  max-height: 80px;
  overflow-y: auto;
}

.file-choice {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 11px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-transform: capitalize;
}

.file-choice:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.4);
}

.file-choice:disabled,
.file-choice.current {
  background: rgba(64, 200, 64, 0.3);
  border-color: rgba(64, 200, 64, 0.6);
  cursor: default;
}

/* Loading State Styles */
.play-button:disabled {
  opacity: 0.6;
  cursor: wait;
}

.play-button:disabled .play-icon {
  animation: loading-pulse 1s ease-in-out infinite;
}

@keyframes loading-pulse {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}
