/* ============================================================
   PlexRaft — Manual Control Panel & Form Inputs
   ============================================================ */

/* ---- Manual Control Panel Layout ---- */
.control-panel {
  padding: 0 16px;
  margin-bottom: 8px;
}

.panel-heading {
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 8px;
  font-weight: 600;
}

.panel-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 24px;
}

.ctrl-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 12px 0;
}

.ctrl-row-slider {
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
}

.ctrl-row-slider .ctrl-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.ctrl-title {
  font-size: 15px;
  color: #fff;
  font-weight: 500;
  display: block;
  margin-bottom: 4px;
}

.ctrl-desc {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
}

.ctrl-val {
  color: var(--cyan);
  font-weight: 600;
  font-size: 14px;
}

.ctrl-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
  margin: 0;
}

/* ---- Custom Checkboxes / Toggle Switches ---- */
.switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.switch .slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(255, 255, 255, 0.2);
  transition: 0.3s;
  border-radius: 24px;
}

.switch .slider:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 2px;
  bottom: 2px;
  background-color: white;
  transition: 0.3s;
  border-radius: 50%;
}

.switch input:checked + .slider {
  background-color: var(--cyan);
}

.switch input:checked + .slider:before {
  transform: translateX(20px);
}

/* ---- Custom Range Sliders ---- */
input[type=range] {
  -webkit-appearance: none;
  width: 100%;
  background: transparent;
}

input[type=range]:focus {
  outline: none;
}

input[type=range]::-webkit-slider-runnable-track {
  width: 100%;
  height: 4px;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 2px;
}

input[type=range]::-webkit-slider-thumb {
  height: 16px;
  width: 16px;
  border-radius: 50%;
  background: var(--cyan);
  cursor: pointer;
  -webkit-appearance: none;
  margin-top: -6px;
}

.range-labels {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: rgba(255, 255, 255, 0.4);
}
