/* css/styles.css */
:root {
  --bg-color: #121415;
  --rack-border: #0a0a0a;
  --clock-panel: #2d333b;
  --hp-dark-panel: #3a3d40;
  --hp-dark-text: #e0e4e8;
  --aphex-panel: #202224;
  --aphex-text: #c0c6ca;
  --led-off: #441111;
  --led-red: #ff3333;
  --led-yellow: #ffcc00;
  --led-green: #33ff33;
  --led-blue: #00ccff;
}

* { box-sizing: border-box; }

body {
  background-color: var(--bg-color);
  color: #e0e0e0;
  font-family: 'Courier New', Courier, monospace;
  margin: 0;
  padding: 15px 25px 60px 25px;
  overflow-x: auto;
  overflow-y: scroll;
}

header { margin-bottom: 15px; text-align: left; }

.studio-frame {
  display: flex;
  gap: 30px;
  align-items: flex-start;
  justify-content: flex-start;
  width: max-content;
  margin: 0 auto;
}

.rack-column { display: flex; flex-direction: column; gap: 10px; }

.rack-header-label {
  font-size: 0.82rem;
  font-weight: bold;
  letter-spacing: 2px;
  color: #0077ff;
  text-transform: uppercase;
  padding-left: 6px;
  border-left: 3px solid #0077ff;
}

.rack {
  background: var(--rack-border);
  padding: 16px 20px;
  border-radius: 6px;
  box-shadow: inset 0 0 15px #000, 0 10px 30px rgba(0,0,0,0.85);
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 920px;
  min-height: 200px;
}

/* Base Instrument Framework */
.instrument {
  position: relative;
  border-radius: 3px;
  padding: 10px 14px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.2), 0 3px 6px rgba(0,0,0,0.5);
  border: 1px solid #333;
}

.rack-ears {
  position: absolute;
  top: 0; bottom: 0;
  width: 15px;
  background: #25282a;
  border: 1px solid #141414;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 6px 0;
  align-items: center;
}
.rack-ears.left { left: -15px; border-radius: 4px 0 0 4px; }
.rack-ears.right { right: -15px; border-radius: 0 4px 4px 0; }
.screw {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #555;
  border: 1px solid #222;
  box-shadow: inset 0 1px 2px rgba(255,255,255,0.4);
}

.inst-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-bottom: 2px solid rgba(0,0,0,0.25);
  padding-bottom: 3px;
  margin-bottom: 8px;
}
.inst-title { font-weight: bold; font-size: 0.85rem; letter-spacing: 1px; }
.inst-specs { font-size: 0.70rem; opacity: 0.8; }

/* Modern System-Wide Shell Dropdown Overlay */
.shell-drop-ui {
  position: relative;
  display: inline-flex;
}
.shell-drop-btn {
  background: #191c20;
  color: #0077ff;
  border: 1px solid #353c44;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 2px;
  font-size: 0.65rem;
  font-family: inherit;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
  min-width: 60px;
}
.shell-drop-btn:hover { background: #242930; }
.shell-drop-btn.compact {
  min-width: unset;
  width: 24px;
  padding: 2px;
  justify-content: center;
}
.shell-drop-btn.compact .drop-text { display: none; }
.drop-text { color: #fff; } /* Overrides the arrow color to keep the text white */

.shell-drop-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #191c20;
  border: 1px solid #353c44;
  min-width: 140px;
  z-index: 100;
  box-shadow: 0 4px 12px rgba(0,0,0,0.8);
  border-radius: 2px;
  max-height: 250px;
  overflow-y: auto;
}
.shell-drop-menu.show { display: block; }
.shell-drop-item {
  padding: 6px 10px;
  font-size: 0.65rem;
  color: #ccc;
  cursor: pointer;
  white-space: nowrap;
}
.shell-drop-item:hover { background: #2b7cff; color: #fff; }
.shell-drop-item.active { background: #0044aa; color: #fff; font-weight: bold; }

/* Common UI Elements used across modules */
button:not(.shell-drop-btn) {
  background: #222;
  color: #eee;
  border: 1px solid #555;
  padding: 3px 5px;
  font-family: inherit;
  border-radius: 2px;
  font-size: 0.72rem;
}

input[type=range] { width: 100%; accent-color: #2b7cff; cursor: pointer; }

.param-group { display: flex; flex-direction: column; gap: 1px; }
.param-group label { display: flex; justify-content: space-between; align-items: center; font-size: 0.63rem; color: #aaa; }

.led {
  width: 8px; height: 8px;
  border-radius: 50%;
  background-color: var(--led-off);
  border: 1px solid #222;
  box-shadow: inset 0 0 2px rgba(0,0,0,0.8);
}
.led.active-key { background-color: var(--led-red); box-shadow: 0 0 5px var(--led-red); }
.led.active-gate { background-color: var(--led-yellow); box-shadow: 0 0 5px var(--led-yellow); }

.four-channel-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }