/* Demo Controls - Pedals, Levers & Bar Slider */
.demo-controls {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}

/* Dashboard Controls - more compact */
.dashboard-controls .control-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.375rem;
}

.control-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.control-group-label {
  font-size: 0.625rem;
  color: #9898a3;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 500;
}

.control-buttons {
  display: flex;
  gap: 0.375rem;
}

/* Vertical lever layout for dashboard */
.control-buttons-vertical {
  flex-direction: column;
  gap: 0.25rem;
}

.lever-row {
  display: flex;
  gap: 0.375rem;
}

.control-btn {
  width: 46px;
  height: 38px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: linear-gradient(180deg, var(--bg-tertiary) 0%, #1f1f23 100%);
  color: #b4b4bc;
  font-size: 0.8125rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.15s;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.control-btn:hover {
  border-color: var(--border-hover);
  color: var(--text-primary);
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.control-btn:active {
  transform: translateY(1px);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.control-btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px var(--bg-primary), 0 0 0 4px var(--accent), 0 4px 8px rgba(0, 0, 0, 0.3);
}

.control-btn.pedal.active {
  background: linear-gradient(180deg, #22c55e 0%, #16a34a 100%);
  border-color: #22c55e;
  color: white;
  box-shadow: 0 0 20px rgba(34, 197, 94, 0.4), 0 2px 4px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.control-btn.lever.active {
  background: linear-gradient(180deg, #f59e0b 0%, #d97706 100%);
  border-color: #f59e0b;
  color: white;
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.4), 0 2px 4px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

/* Bar Position */
.bar-position {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
  padding: 0.5rem 0;
}

.bar-label {
  font-size: 0.6875rem;
  color: #9898a3;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 500;
}

/* Compact bar control for dashboard */
.bar-control {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.bar-control .bar-value {
  font-size: 0.8125rem;
  min-width: auto;
  text-align: center;
}

.bar-slider {
  width: 200px;
  height: 8px;
  -webkit-appearance: none;
  appearance: none;
  background: linear-gradient(180deg, #1a1a1f 0%, var(--bg-tertiary) 100%);
  border-radius: 4px;
  outline: none;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.3);
}

/* Compact slider for dashboard */
.dashboard-controls .bar-slider {
  width: 120px;
}

.bar-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  background: linear-gradient(180deg, #60a5fa 0%, var(--accent) 100%);
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 0 12px rgba(59, 130, 246, 0.5), 0 2px 4px rgba(0, 0, 0, 0.3);
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.bar-slider::-webkit-slider-thumb:hover {
  box-shadow: 0 0 16px rgba(59, 130, 246, 0.6), 0 2px 6px rgba(0, 0, 0, 0.4);
}

.bar-slider::-moz-range-thumb {
  width: 20px;
  height: 20px;
  background: linear-gradient(180deg, #60a5fa 0%, var(--accent) 100%);
  border-radius: 50%;
  cursor: pointer;
  border: 2px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 0 12px rgba(59, 130, 246, 0.5), 0 2px 4px rgba(0, 0, 0, 0.3);
}

.bar-value {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--accent);
  min-width: 65px;
  text-align: left;
  text-shadow: 0 0 10px rgba(59, 130, 246, 0.3);
}
