/* Camera Control Panel */
.camera-panel {
  position: fixed;
  top: 50%;
  right: -280px;
  transform: translateY(-50%);
  width: 260px;
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-right: none;
  border-radius: 6px 0 0 6px;
  z-index: 60;
  transition: right 0.3s ease;
  box-shadow: -4px 0 12px rgba(0,0,0,0.3);
}

.camera-panel.open {
  right: 0;
}

/* Camera Mode Grid */
.camera-mode-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.cam-mode-btn {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 12px 8px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text-secondary);
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  cursor: pointer;
  transition: all 0.15s;
}

.cam-mode-btn svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cam-mode-btn:hover {
  background: var(--bg-primary);
  color: var(--text-primary);
  border-color: var(--accent);
}

.cam-mode-btn.active {
  background: var(--accent-dim);
  border-color: var(--accent);
  color: var(--accent);
}

.cam-mode-key {
  position: absolute;
  top: 4px;
  right: 4px;
  font-size: 8px;
  color: var(--text-dim);
  background: var(--bg-secondary);
  padding: 2px 4px;
  border-radius: 2px;
}

/* Camera Sliders */
.camera-slider {
  width: calc(100% - 40px);
  height: 4px;
  border-radius: 2px;
  background: var(--bg-tertiary);
  outline: none;
  -webkit-appearance: none;
  margin-right: 8px;
  vertical-align: middle;
}

.camera-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent);
  cursor: pointer;
  transition: all 0.15s;
}

.camera-slider::-webkit-slider-thumb:hover {
  background: var(--text-primary);
  transform: scale(1.2);
}

.camera-slider::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent);
  cursor: pointer;
  border: none;
}

.slider-value {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: var(--text-primary);
  min-width: 32px;
  text-align: right;
  vertical-align: middle;
}

/* Action Buttons */
.cam-action-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.cam-action-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text-secondary);
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  cursor: pointer;
  transition: all 0.15s;
}

.cam-action-btn svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cam-action-btn:hover {
  background: var(--bg-primary);
  color: var(--text-primary);
  border-color: var(--accent);
}

/* Free Cam toggle */
.freecam-toggle-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text-secondary);
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.15s;
}

.freecam-toggle-btn svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.freecam-toggle-btn:hover {
  background: var(--bg-primary);
  color: var(--text-primary);
  border-color: var(--accent);
}

.freecam-toggle-btn.active {
  background: var(--accent-dim);
  border-color: var(--accent);
  color: var(--accent);
}

.freecam-hint {
  margin-top: 8px;
  padding: 8px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 4px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  line-height: 1.6;
  color: var(--text-secondary);
}

.freecam-hint strong {
  color: var(--accent);
  font-weight: normal;
}

.freecam-speed {
  margin-top: 8px;
}

.freecam-speed .panel-label {
  margin-bottom: 6px;
}
