@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700;900&family=Monaco&display=swap');

.font-orbitron {
  font-family: 'Orbitron', monospace;
}

.glassmorphism {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
}

/* Enhanced Dual-Track Sliders */
.slider {
  background: linear-gradient(90deg, #00D4FF, #6B46C1);
  border-radius: 10px;
}

.melody-slider {
  background: linear-gradient(90deg, #00D4FF, #3B82F6);
  border-radius: 10px;
}

.drum-slider {
  background: linear-gradient(90deg, #FF6B35, #F97316);
  border-radius: 10px;
}

.master-slider {
  background: linear-gradient(90deg, #10B981, #059669);
  border-radius: 10px;
}

.master-tempo-slider {
  background: linear-gradient(90deg, #8B5CF6, #A855F7, #EC4899);
  border-radius: 10px;
  height: 12px;
}

.syncopation-slider {
  background: linear-gradient(90deg, #F59E0B, #EF4444);
  border-radius: 10px;
}

/* Enhanced slider thumbs */
.slider::-webkit-slider-thumb,
.melody-slider::-webkit-slider-thumb {
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #00D4FF;
  cursor: pointer;
  box-shadow: 0 0 15px rgba(0, 212, 255, 0.6);
  transition: all 0.2s ease;
}

.drum-slider::-webkit-slider-thumb {
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #FF6B35;
  cursor: pointer;
  box-shadow: 0 0 15px rgba(255, 107, 53, 0.6);
  transition: all 0.2s ease;
}

.master-slider::-webkit-slider-thumb {
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #10B981;
  cursor: pointer;
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.6);
  transition: all 0.2s ease;
}

.master-tempo-slider::-webkit-slider-thumb {
  appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: linear-gradient(45deg, #8B5CF6, #EC4899);
  cursor: pointer;
  box-shadow: 0 0 20px rgba(139, 92, 246, 0.8);
  transition: all 0.2s ease;
}

.syncopation-slider::-webkit-slider-thumb {
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #F59E0B;
  cursor: pointer;
  box-shadow: 0 0 15px rgba(245, 158, 11, 0.6);
  transition: all 0.2s ease;
}

/* Firefox slider styling */
.slider::-moz-range-thumb,
.melody-slider::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #00D4FF;
  cursor: pointer;
  border: none;
  box-shadow: 0 0 15px rgba(0, 212, 255, 0.6);
}

.drum-slider::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #FF6B35;
  cursor: pointer;
  border: none;
  box-shadow: 0 0 15px rgba(255, 107, 53, 0.6);
}

.master-slider::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #10B981;
  cursor: pointer;
  border: none;
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.6);
}

/* Enhanced hover effects */
.slider::-webkit-slider-thumb:hover,
.melody-slider::-webkit-slider-thumb:hover,
.drum-slider::-webkit-slider-thumb:hover,
.master-slider::-webkit-slider-thumb:hover,
.master-tempo-slider::-webkit-slider-thumb:hover,
.syncopation-slider::-webkit-slider-thumb:hover {
  transform: scale(1.2);
  filter: brightness(1.2);
}

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

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

::-webkit-scrollbar-thumb {
  background: linear-gradient(45deg, #00D4FF, #FF6B35);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(45deg, #0099CC, #E55A2B);
}

/* Synchronized pulse animations */
@keyframes sync-pulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.7;
    transform: scale(1.05);
  }
}

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

/* Beat grid effect */
@keyframes beat-flash {
  0% { opacity: 0.3; }
  50% { opacity: 1; }
  100% { opacity: 0.3; }
}

.beat-flash {
  animation: beat-flash 0.5s ease-in-out;
}

/* Dual-track glow effects */
.melody-glow {
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.4);
}

.drum-glow {
  box-shadow: 0 0 20px rgba(255, 107, 53, 0.4);
}

.sync-glow {
  box-shadow: 0 0 25px rgba(57, 255, 20, 0.4);
}

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

button:hover {
  transform: translateY(-2px);
  filter: brightness(1.1);
}

button:active {
  transform: translateY(0);
}

/* Syncopation visual indicators */
.syncopation-marker {
  position: relative;
}

.syncopation-marker::after {
  content: '⚡';
  position: absolute;
  top: -5px;
  right: -5px;
  font-size: 10px;
  color: #F59E0B;
  text-shadow: 0 0 5px rgba(245, 158, 11, 0.8);
}

/* Enhanced loading animation for dual-track generation */
.generating {
  position: relative;
  overflow: hidden;
}

.generating::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, 
    transparent, 
    rgba(0, 212, 255, 0.2), 
    rgba(255, 107, 53, 0.2), 
    transparent
  );
  animation: dual-shimmer 2s infinite;
}

@keyframes dual-shimmer {
  0% { left: -100%; }
  100% { left: 100%; }
}

/* Professional studio-style table enhancements */
table {
  border-collapse: collapse;
  border-spacing: 0;
  font-family: 'Monaco', monospace;
}

td, th {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 12px;
}

/* Responsive enhancements for dual tracks */
@media (max-width: 768px) {
  .glassmorphism {
    backdrop-filter: blur(5px);
  }
  
  .grid-cols-3 {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .lg\:col-span-3 {
    grid-column: span 1;
  }
  
  .master-tempo-slider {
    height: 8px;
  }
  
  .master-tempo-slider::-webkit-slider-thumb {
    width: 20px;
    height: 20px;
  }
}

/* Track visualization enhancements */
.melody-visualizer {
  border-left: 3px solid #00D4FF;
  padding-left: 1rem;
}

.drum-visualizer {
  border-left: 3px solid #FF6B35;
  padding-left: 1rem;
}

/* Enhanced focus states for accessibility */
input:focus, select:focus, button:focus {
  outline: 2px solid #00D4FF;
  outline-offset: 2px;
}

/* Track separation visual cues */
.track-separator {
  height: 2px;
  background: linear-gradient(90deg, #00D4FF, transparent, #FF6B35);
  margin: 1rem 0;
}

/* Professional mixing board style */
.mix-channel {
  position: relative;
  padding: 1rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.mix-channel::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  border-radius: 8px 8px 0 0;
}

.melody-channel::before {
  background: linear-gradient(90deg, #00D4FF, #3B82F6);
}

.drum-channel::before {
  background: linear-gradient(90deg, #FF6B35, #F97316);
}

/* Tempo sync visual feedback */
.tempo-sync-indicator {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin: 0 5px;
}

.tempo-locked {
  background: #39FF14;
  animation: sync-pulse 1s ease-in-out infinite;
}

.tempo-unlocked {
  background: #6B7280;
}