/* DX7 simplified controls panel.
 * Self-contained knob + section styles for the post-DX7 subtractive layer.
 * Mirrors the compact knob/toggle styles used by the Prophet-5 page so the
 * Dx7ParametersUI.js DOM (same class names) renders consistently. */

.dx7-parameters-panel {
  display: flex;
  gap: 20px;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px;
  background: #0a0a0a;
  border: 2px solid #00ff00;
  border-radius: 8px;
  box-shadow: 0 0 20px rgba(0, 255, 0, 0.2);
}

.dx7-parameters-panel .modulation-column {
  display: flex;
  flex-direction: column;
  gap: 15px;
  flex: 0 0 240px;
}

.dx7-parameters-panel .center-area,
.dx7-parameters-panel .right-area {
  display: flex;
  gap: 20px;
  flex: 1 1 auto;
  justify-content: center;
  flex-wrap: wrap;
}

.dx7-parameters-panel .prophet-section {
  background: linear-gradient(135deg, #1a1a1a, #222222);
  border: 1px solid #00aa00;
  border-radius: 6px;
  padding: 14px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.dx7-parameters-panel .prophet-section h3 {
  color: #00ff00;
  font-size: 12px;
  margin-bottom: 12px;
  text-align: center;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-bottom: 1px solid #006600;
  padding-bottom: 8px;
}

.dx7-parameters-panel .filter-grid,
.dx7-parameters-panel .envelope-grid {
  display: flex;
  gap: 12px;
  justify-content: space-between;
  flex-wrap: wrap;
}

.dx7-parameters-panel .dx7-operator-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(128px, 1fr));
  gap: 10px;
}

.dx7-parameters-panel .dx7-operator-row {
  display: grid;
  grid-template-columns: 34px repeat(2, minmax(46px, 1fr));
  align-items: center;
  gap: 8px;
  padding: 6px;
  border: 1px solid rgba(0, 170, 0, 0.35);
  border-radius: 6px;
  background: rgba(0, 40, 0, 0.18);
}

.dx7-parameters-panel .dx7-operator-label {
  color: #00ff99;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.dx7-parameters-panel .compact-knob {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #2a3a2a, #0a1a0a);
  border: 2px solid #008800;
  position: relative;
  cursor: pointer;
  transition: all 0.1s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

.dx7-parameters-panel .compact-knob:hover {
  border-color: #00ff00;
  transform: scale(1.05);
}

.dx7-parameters-panel .compact-knob::before {
  content: '';
  position: absolute;
  top: 3px;
  left: 50%;
  transform: translateX(-50%) rotate(var(--rotation, 0deg));
  width: 2px;
  height: 15px;
  background: linear-gradient(180deg, #00ff00, #00aa00);
  border-radius: 1px;
  transform-origin: bottom center;
  transition: transform 0.1s ease;
}

.dx7-parameters-panel .compact-toggle {
  width: 35px;
  height: 20px;
  border-radius: 10px;
  background: linear-gradient(135deg, #1a1a1a, #0a0a0a);
  border: 1px solid #006600;
  position: relative;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.dx7-parameters-panel .compact-toggle:hover {
  border-color: #00ff00;
  transform: scale(1.05);
}

.dx7-parameters-panel .compact-toggle::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 4px;
  transform: translateY(-50%) translateX(var(--toggle-x, 0px));
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: linear-gradient(135deg, #444444, #222222);
  border: 1px solid #666666;
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.dx7-parameters-panel .compact-toggle.on {
  background: linear-gradient(135deg, #003300, #002200);
  border-color: #00ff00;
}

.dx7-parameters-panel .compact-toggle.on::before {
  --toggle-x: 13px;
  background: linear-gradient(135deg, #00ff00, #00aa00);
  border-color: #00ff88;
}

.dx7-parameters-panel .control-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.dx7-parameters-panel .control-label {
  font-size: 9px;
  color: #88cc88;
  text-align: center;
  font-weight: 500;
  max-width: 60px;
  line-height: 1.2;
  letter-spacing: 0.5px;
}

.dx7-parameters-panel .control-value {
  font-size: 8px;
  color: #66aa66;
  text-align: center;
  min-height: 10px;
  font-family: 'Courier New', monospace;
}

.dx7-parameters-panel .control-value.on {
  color: #00ff00;
}

.dx7-parameters-panel .fx-area {
  display: flex;
  gap: 20px;
  flex: 1 1 auto;
  flex-wrap: wrap;
}

.dx7-parameters-panel .fx-slider-container {
  gap: 3px;
  min-width: 58px;
}

.dx7-parameters-panel .fx-slider {
  width: 80px;
  accent-color: #00cc66;
  cursor: pointer;
}

.dx7-parameters-panel .fx-slider-value {
  font-size: 8px;
  color: #66aa66;
  font-family: 'Courier New', monospace;
}

.dx7-parameters-panel .fx-select {
  background: #0a1a0a;
  color: #88cc88;
  border: 1px solid #006600;
  border-radius: 4px;
  padding: 2px 4px;
  font-size: 10px;
  cursor: pointer;
}

.dx7-parameters-panel .dx7-chorus-buttons {
  display: flex;
  gap: 6px;
}

.dx7-parameters-panel .dx7-chorus-btn {
  padding: 4px 10px;
  font-size: 10px;
  font-weight: 600;
  background: #0a1a0a;
  color: #66aa66;
  border: 1px solid #006600;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.dx7-parameters-panel .dx7-chorus-btn:hover {
  border-color: #00cc66;
  color: #88cc88;
}

.dx7-parameters-panel .dx7-chorus-btn.active {
  background: #003300;
  border-color: #00ff66;
  color: #00ff66;
  box-shadow: 0 0 6px rgba(0, 255, 102, 0.3);
}

.dx7-parameters-panel .delay-grid {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
