/* ------------------------------
   THEME VARIABLES
------------------------------*/

/* Default Theme */
:root {
  --bg: #1e1e1e;
  --panel: #2a2a2a;
  --border: #444;
  --text: #e0e0e0;
  --accent: #4caf50;
  --meter: lime;
  --meter-bg: #000;
}

/* Kings Pro Mode */
body.kings {
  --bg: #0a0a0a;
  --panel: #1a1a1a;
  --border: #5a2d81;
  --text: #c4ced4;
  --accent: #5a2d81; /* Kings Purple */
  --meter: #c4ced4;  /* Silver */
  --meter-bg: #000;
}

/* ------------------------------
   GLOBAL
------------------------------*/

body {
  margin: 0;
  padding: 0;
  font-family: system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
}

header, footer {
  text-align: center;
  padding: 20px;
  background: #111;
  border-bottom: 1px solid var(--border);
}

h1, h2 {
  margin: 10px 0;
  font-weight: 600;
  color: var(--text);
}

section {
  padding: 20px;
}

/* ------------------------------
   CONTROLS
------------------------------*/

#controls {
  background: var(--panel);
  border-bottom: 1px solid var(--border);
}

.control-group {
  margin-bottom: 15px;
}

input[type="file"],
input[type="number"],
select {
  padding: 6px;
  background: #333;
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 4px;
}

button {
  padding: 8px 14px;
  margin-right: 10px;
  background: #444;
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 4px;
  cursor: pointer;
  transition: 0.2s;
}

button:hover {
  background: #666;
}

button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* ------------------------------
   CANVASES
------------------------------*/

#spectrumCanvas,
#waveformCanvas {
  width: 100%;
  display: block;
  background: #000;
  border: 1px solid var(--border);
  margin: 0 auto;
}

/* ------------------------------
   BANDS
------------------------------*/

#bandsContainer {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.band {
  background: var(--panel);
  border: 1px solid var(--border);
  padding: 12px;
  border-radius: 6px;
  width: calc(33% - 12px);
  min-width: 260px;
}

.band-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.band button {
  padding: 4px 8px;
  margin-left: 4px;
  background: #555;
  border: 1px solid var(--border);
}

.band button.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #000;
}

.bandMeter {
  width: 100%;
  height: 40px;
  background: var(--meter-bg);
  border: 1px solid var(--border);
  margin: 8px 0;
}