/* CSS Reset and Variables */
:root {
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;

  /* Theme Colors */
  --bg-main: #090d16;
  --bg-panel: rgba(18, 24, 38, 0.7);
  --bg-panel-hover: rgba(22, 30, 48, 0.8);
  --bg-card: rgba(30, 41, 59, 0.5);
  --border-color: rgba(255, 255, 255, 0.08);
  --border-color-focus: rgba(255, 255, 255, 0.25);
  
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  
  --accent-color: #3b82f6;
  --accent-glow: rgba(59, 130, 246, 0.5);
  --success-color: #10b981;
  --error-color: #ef4444;

  /* Transition timings */
  --transition-fast: 0.15s ease;
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
  background-color: var(--bg-main);
  background-image: 
    radial-gradient(at 0% 0%, rgba(30, 27, 75, 0.3) 0, transparent 50%),
    radial-gradient(at 50% 0%, rgba(15, 23, 42, 0.5) 0, transparent 50%),
    radial-gradient(at 100% 0%, rgba(88, 28, 135, 0.15) 0, transparent 50%);
  background-attachment: fixed;
  color: var(--text-primary);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.5;
  min-height: 100vh;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* Layout */
.app-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  gap: 1.5rem;
}

.app-header {
  margin-bottom: 0.5rem;
  animation: fadeIn 0.8s ease-out;
}

.header-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.logo-icon {
  color: #38bdf8;
  filter: drop-shadow(0 0 8px rgba(56, 189, 248, 0.4));
}

.app-header h1 {
  font-family: var(--font-heading);
  font-size: 2.25rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  background: linear-gradient(to right, #f8fafc, #38bdf8, #818cf8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.subtitle {
  color: var(--text-secondary);
  font-size: 1.05rem;
  max-width: 700px;
  font-weight: 300;
}

/* Grid Layout (Vertical Stack) */
.app-grid {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: stretch;
}

/* Horizontal Location Panel Layout */
.location-panel {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  align-items: center;
  gap: 2rem;
  padding: 1.25rem 1.75rem;
  position: relative;
  z-index: 100; /* Stacks above the visualizer panel */
  transform: translateZ(0); /* Force GPU compositing layer to bypass backdrop-filter overlap bugs */
}

.location-panel .panel-title {
  grid-column: 1 / -1;
  margin-bottom: 0.15rem;
}

.location-panel .search-box {
  width: 100%;
  position: relative; /* Local context to anchor Suggestions List */
  z-index: 150; /* Sits on top of siblings inside the panel */
  margin-bottom: 0; /* Remove bottom margin to align perfectly in grid */
}

.location-panel .shortcuts-group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
}

.location-panel .shortcuts-group .label {
  display: inline-block; /* Override base display: block to align horizontally with buttons */
  margin-bottom: 0;
  font-size: 0.8rem;
  color: var(--text-secondary);
  white-space: nowrap;
}

.location-panel .badge-container {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}





/* Panels (Glassmorphism) */
.panel {
  background-color: var(--bg-panel);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 1.5rem;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
  transition: border-color var(--transition-normal), background-color var(--transition-normal);
}

.panel:hover {
  background-color: var(--bg-panel-hover);
  border-color: rgba(255, 255, 255, 0.12);
}

.panel-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.panel-title svg {
  color: #38bdf8;
}

/* Forms & Inputs */
.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

select, input[type="text"] {
  width: 100%;
  padding: 0.75rem 1rem;
  background-color: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: all var(--transition-fast);
  outline: none;
}

select:focus, input[type="text"]:focus {
  border-color: #38bdf8;
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.15);
  background-color: rgba(15, 23, 42, 0.8);
}

select:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Search Box Autocomplete */
.search-box {
  position: relative;
  margin-bottom: 1rem;
}

.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.search-icon {
  position: absolute;
  left: 1rem;
  color: var(--text-muted);
  pointer-events: none;
}

.search-box input[type="text"] {
  padding-left: 2.5rem;
  padding-right: 2.5rem;
}

.clear-btn {
  position: absolute;
  right: 1rem;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.25rem;
  cursor: pointer;
  padding: 0.25rem;
}

.clear-btn:hover {
  color: var(--text-primary);
}

.spinner {
  position: absolute;
  right: 1rem;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-top-color: #38bdf8;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.suggestions-list {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background-color: #121824;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  max-height: 250px;
  overflow-y: auto;
  z-index: 999; /* Ensure list is drawn on top of other content inside the container */
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transform: translateZ(0); /* Force separate composite layer to prevent clipping under backdrop-filter panels */
}

.suggestion-item {
  padding: 0.75rem 1rem;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  transition: background-color var(--transition-fast);
}

.suggestion-item:last-child {
  border-bottom: none;
}

.suggestion-item:hover, .suggestion-item.highlighted {
  background-color: rgba(255, 255, 255, 0.05);
}

.suggestion-name {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-primary);
}

.suggestion-sub {
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-top: 0.15rem;
}

.divider {
  display: flex;
  align-items: center;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  margin: 1.25rem 0;
}

.divider::before, .divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid var(--border-color);
}

.divider span {
  padding: 0 0.75rem;
}

/* Shortcuts & Badges */
.shortcuts-group .label {
  display: block;
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.badge-container {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.preset-badge {
  background-color: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-size: 0.8rem;
  padding: 0.4rem 0.8rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.preset-badge:hover {
  background-color: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
  border-color: rgba(255, 255, 255, 0.2);
}

.preset-badge.active {
  background-color: rgba(56, 189, 248, 0.15);
  border-color: rgba(56, 189, 248, 0.5);
  color: #38bdf8;
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.1);
}

/* Visualizer Panel */
.visualizer-panel {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  position: relative;
  z-index: 1; /* Lower than location-panel to allow dropdown overlaps */
}

.location-title-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 1rem;
}

#current-location-name {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-primary);
}

.sub-label {
  display: block;
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-top: 0.15rem;
}

.data-badge {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  background-color: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.3);
  color: #38bdf8;
}

.data-badge.loading {
  background-color: rgba(245, 158, 11, 0.12);
  border-color: rgba(245, 158, 11, 0.3);
  color: #fbbf24;
}

/* Warming Stripes Display */
.stripes-wrapper {
  display: grid;
  grid-template-columns: 55px 1fr;
  position: relative;
  width: 100%;
  height: 350px;
  background-color: transparent;
}

.y-axis-spacer {
  width: 100%;
  height: 100%;
  background-color: transparent;
}

.stripes-inner-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 12px;
  overflow: visible; /* Let playhead label float outside the box edges */
  box-shadow: 0 10px 20px -10px rgba(0, 0, 0, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.stripes-container {
  display: flex;
  width: 100%;
  height: 100%;
  cursor: ew-resize;
  user-select: none;
  border-radius: 11px; /* Clip child stripes rounded corners */
  overflow: hidden; /* Prevent stripes hover scaling from extending outside */
}

.stripe {
  flex: 1;
  height: 100%;
  transition: transform 0.12s ease;
  position: relative;
}

.stripe:hover {
  transform: scaleY(1.04);
  z-index: 10;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
}

.stripe.active {
  box-shadow: 0 0 8px #ffffff, 0 0 20px currentColor;
  transform: scaleY(1.06);
  z-index: 12;
}

/* Playhead */
.playhead {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  background-color: #ffffff;
  pointer-events: none;
  z-index: 20;
  box-shadow: 0 0 10px #ffffff, 0 0 3px #ffffff;
  display: none;
  transform: translateX(-50%);
}

.playhead::before, .playhead::after {
  content: '';
  position: absolute;
  left: 50%;
  width: 8px;
  height: 8px;
  background-color: #ffffff;
  border-radius: 50%;
  transform: translateX(-50%);
  box-shadow: 0 0 8px #ffffff;
}

.playhead::before {
  top: 0;
}

.playhead::after {
  bottom: 0;
}

.playhead-label {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  background-color: rgba(9, 13, 22, 0.9);
  border: 1px solid rgba(56, 189, 248, 0.35);
  color: #38bdf8;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 750;
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6), 0 0 10px rgba(56, 189, 248, 0.3);
  pointer-events: none;
  z-index: 25;
}

.stripes-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-secondary);
  font-weight: 500;
  margin-left: 55px; /* Offset to align with the stripes */
}

.label-info {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-style: italic;
}

/* Anomaly Chart Overlay Styling */
.anomaly-chart-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none; /* Allows mouse/touch events to pass through to stripes! */
  z-index: 15; /* Sits above stripes but below playhead */
  opacity: 0; /* Hidden by default, fades in when playing/scrubbing */
  transition: opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.anomaly-chart-overlay.visible {
  opacity: 1; /* Fades in during sonification playback/interaction */
}

.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1.25fr 1.25fr 1.25fr;
  gap: 1rem;
  margin-top: 0.5rem;
}

.stat-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  transition: all var(--transition-normal);
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background-color: var(--text-muted);
  transition: background-color var(--transition-normal);
}

.stat-card.active-card::before {
  background-color: var(--accent-card-border, #38bdf8);
}

.stat-card.active-card {
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 4px 15px -3px rgba(0, 0, 0, 0.3), 0 0 10px -2px var(--accent-card-shadow, rgba(56, 189, 248, 0.2));
  background-color: rgba(30, 41, 59, 0.7);
}

.stat-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
  margin-bottom: 0.25rem;
}

.stat-value {
  font-family: var(--font-heading);
  font-size: 1.65rem;
  font-weight: 700;
  color: var(--text-primary);
}

.stat-sub {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: auto;
}

.stat-value.cool {
  color: #38bdf8;
  text-shadow: 0 0 10px rgba(56, 189, 248, 0.3);
}

.stat-value.warm {
  color: #f43f5e;
  text-shadow: 0 0 10px rgba(244, 63, 94, 0.3);
}

/* Audio & Synth Settings Panel */
.synth-panel {
  grid-column: 1 / -1;
}

.synth-controls-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 2.25fr 0.8fr 1.25fr 1.25fr;
  gap: 1.25rem;
  align-items: flex-end;
}

.control-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.control-group label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  border-radius: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all var(--transition-fast);
  border: 1px solid transparent;
}

.btn-primary {
  background-color: #38bdf8;
  color: #0f172a;
}

.btn-primary:hover {
  background-color: #7dd3fc;
  box-shadow: 0 0 15px rgba(56, 189, 248, 0.3);
  transform: translateY(-1px);
}

.btn-play {
  min-width: 140px;
}

.btn-play.playing {
  background-color: #f43f5e;
  color: #ffffff;
}

.btn-play.playing:hover {
  background-color: #fda4af;
  box-shadow: 0 0 15px rgba(244, 63, 94, 0.3);
}

.btn-secondary {
  background-color: rgba(255, 255, 255, 0.05);
  border-color: var(--border-color);
  color: var(--text-primary);
}

.btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

.playback-group {
  flex-direction: row;
  gap: 0.5rem;
  width: 100%;
}

.playback-group .btn {
  flex: 1;
}

/* Range Inputs */
.slider-wrapper {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background-color: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 0.4rem 0.75rem;
  height: 42px;
}

.slider-wrapper input[type="range"] {
  -webkit-appearance: none;
  width: 100%;
  height: 20px;
  background: transparent;
  outline: none;
  cursor: pointer;
}

/* Webkit sliders */
.slider-wrapper input[type="range"]::-webkit-slider-runnable-track {
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
}

.slider-wrapper input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  height: 16px;
  width: 16px;
  border-radius: 50%;
  background: #38bdf8;
  cursor: pointer;
  margin-top: -6px;
  box-shadow: 0 0 8px rgba(56, 189, 248, 0.5);
  transition: transform 0.1s ease;
}

.slider-wrapper input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

/* Firefox styles */
.slider-wrapper input[type="range"]::-moz-range-track {
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
}

.slider-wrapper input[type="range"]::-moz-range-thumb {
  height: 16px;
  width: 16px;
  border-radius: 50%;
  background: #38bdf8;
  border: none;
  cursor: pointer;
  box-shadow: 0 0 8px rgba(56, 189, 248, 0.5);
  transition: transform 0.1s ease;
}

.slider-wrapper input[type="range"]::-moz-range-thumb:hover {
  transform: scale(1.2);
}

.slider-badge {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-secondary);
  background-color: rgba(255, 255, 255, 0.05);
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  white-space: nowrap;
  min-width: 54px;
  text-align: center;
}

.mute-btn {
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.25rem;
}

.mute-btn:hover {
  color: var(--text-primary);
}

/* Tooltip */
.tooltip {
  position: absolute;
  padding: 0.5rem 0.75rem;
  background-color: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 6px;
  font-size: 0.8rem;
  pointer-events: none;
  z-index: 100;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
}

.tooltip-year {
  font-weight: 700;
  margin-bottom: 0.15rem;
}

.tooltip-value {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

/* Footer styling */
.app-footer {
  margin-top: auto;
  border-top: 1px solid var(--border-color);
  padding-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.app-footer a {
  color: var(--text-secondary);
  text-decoration: none;
  border-bottom: 1px dashed var(--text-secondary);
}

.app-footer a:hover {
  color: var(--text-primary);
  border-bottom-style: solid;
}

/* Utilities */
.hidden {
  display: none !important;
}

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

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

/* Voice Mixer Styles */
.mixer-container {
  margin-top: 1.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-color);
  animation: fadeIn 0.5s ease-out;
}

.mixer-title {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.mixer-icon {
  color: #38bdf8;
}

.mixer-channels {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1.25rem;
}

.mixer-channel {
  background-color: rgba(15, 23, 42, 0.4);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 0.85rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  transition: all var(--transition-fast);
}

.mixer-channel:hover {
  background-color: rgba(15, 23, 42, 0.6);
  border-color: rgba(255, 255, 255, 0.12);
}

.channel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.channel-name {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.channel-controls {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.channel-mute-btn {
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.35rem 0.75rem;
  border-radius: 6px;
  cursor: pointer;
  transition: all var(--transition-fast);
  outline: none;
}

.channel-mute-btn:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
  border-color: rgba(255, 255, 255, 0.2);
}

.channel-mute-btn.muted {
  background-color: var(--error-color);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.4);
}

.channel-slider {
  flex: 1;
  -webkit-appearance: none;
  background: transparent;
  height: 20px;
  outline: none;
  cursor: pointer;
}

/* Slider Track webkit */
.channel-slider::-webkit-slider-runnable-track {
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
}

/* Slider Thumb webkit */
.channel-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  height: 14px;
  width: 14px;
  border-radius: 50%;
  background: #38bdf8;
  cursor: pointer;
  margin-top: -5px;
  box-shadow: 0 0 6px rgba(56, 189, 248, 0.4);
  transition: transform 0.1s ease;
}

.channel-slider::-webkit-slider-thumb:hover {
  transform: scale(1.25);
}

/* Slider Track Firefox */
.channel-slider::-moz-range-track {
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
}

/* Slider Thumb Firefox */
.channel-slider::-moz-range-thumb {
  height: 14px;
  width: 14px;
  border-radius: 50%;
  background: #38bdf8;
  border: none;
  cursor: pointer;
  box-shadow: 0 0 6px rgba(56, 189, 248, 0.4);
  transition: transform 0.1s ease;
}

.channel-slider::-moz-range-thumb:hover {
  transform: scale(1.25);
}

.channel-badge {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-muted);
  background-color: rgba(255, 255, 255, 0.05);
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
  white-space: nowrap;
}

/* Channel Dropdown Selectors */
.channel-patch-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
  border-top: 1px dashed rgba(255, 255, 255, 0.08);
  padding-top: 0.6rem;
}

.channel-select-label {
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.channel-select {
  flex: 1;
  background-color: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-size: 0.75rem;
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
  outline: none;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.channel-select:hover {
  background-color: rgba(255, 255, 255, 0.06);
  color: var(--text-primary);
  border-color: rgba(255, 255, 255, 0.15);
}

.channel-select option {
  background-color: rgb(15, 23, 42);
  color: var(--text-primary);
}

/* Responsive Queries */
@media (max-width: 1024px) {
  .app-grid {
    flex-direction: column;
  }
  
  .location-panel {
    grid-template-columns: 1fr;
    gap: 1.25rem;
    padding: 1.5rem;
  }
  
  .synth-controls-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }
  
  .playback-group {
    grid-column: 1 / -1;
  }
  
  .mixer-channels {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
}

@media (max-width: 640px) {
  .app-container {
    padding: 1.5rem 1rem;
  }
  
  .app-header h1 {
    font-size: 1.75rem;
  }
  
  .stats-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
  
  .synth-controls-grid {
    grid-template-columns: 1fr;
  }
}
