:root {
  /* Blade Runner Theme - Pro Audio VST Aesthetic */

  /* Colors */
  --bg-app: #0a0b10;       /* Deepest Gunmetal */
  --bg-panel: #111318;     /* Module Background */
  --bg-input: #08090c;     /* Inset Input Background */

  --color-primary: #00E5FF; /* Neon Cyan - Active/Play */
  --color-primary-dim: rgba(0, 229, 255, 0.1);
  --color-secondary: #FFB300; /* Neon Amber - Warning/Override */

  --color-gold: #ffc107;
  --color-gold-dim: #b38600;

  --border-color: #334155;
  --border-light: #475569;

  --text-main: #E2E8F0;
  --text-muted: #64748B;

  /* Fonts */
  --font-display: 'Rajdhani', sans-serif;
  --font-tech: 'JetBrains Mono', monospace;

  /* Layout */
  --spacing-xs: 4px;
  --spacing-sm: 8px;
  --spacing-md: 16px;
  --spacing-lg: 24px;

  --radius-sm: 4px; /* Sharper corners for tech feel */
  --radius-md: 8px;

  /* Defaults */
  font-family: var(--font-display);
  line-height: 1.5;
  font-weight: 500;
  letter-spacing: 0.05em;

  color-scheme: dark;
  color: var(--text-main);
  background-color: var(--bg-app);
  background-image:
    linear-gradient(rgba(15, 17, 21, 0.95), rgba(15, 17, 21, 0.95)),
    url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%231f2937' fill-opacity='0.1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");

  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  display: flex;
  place-items: center;
  min-width: 320px;
  min-height: 100vh;
}

#root {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 2rem;
  text-align: center;
}

/* --- Panel Architecture (The Rack Look) --- */
.panel, .module-panel {
  background-color: var(--bg-panel);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: var(--spacing-md);
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.5);
  position: relative;
  /* Optional "Screw" corners could be pseudo-elements, simpler for now */
}

/* Headers */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
  color: var(--text-main);
  text-shadow: 0 0 2px rgba(0, 0, 0, 0.5);
}

label {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
}

/* --- Controls & Inputs --- */

button {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  padding: 0.6em 1.2em;
  background-color: #1a1a1a;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.15s ease-out;
}

button:hover {
  border-color: var(--color-primary);
  color: var(--text-main);
  background-color: #222;
  box-shadow: 0 0 8px rgba(0, 229, 255, 0.2);
}

button:active {
  transform: translateY(1px);
}

/* Active State "Bloom" logic should be applied via inline styles in React or specific active classes */
/* Generic active class helper */
button.active {
  border-color: var(--color-primary);
  color: var(--color-primary);
  background-color: var(--color-primary-dim);
  box-shadow: 0 0 10px rgba(0, 229, 255, 0.4);
}

select {
  font-family: var(--font-tech);
  background-color: var(--bg-input);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 8px;
  border-radius: var(--radius-sm);
}

select:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 5px rgba(0, 229, 255, 0.3);
}

/* --- Specific Component Styles --- */

/* Timeline Playhead */
.playhead {
  background-color: #fff; /* Core white hot */
  box-shadow:
    0 0 4px #fff,
    0 0 8px var(--color-primary),
    0 0 15px var(--color-primary);
  opacity: 0.9;
}

/* Timeline Blocks */
.timeline-block {
  font-family: var(--font-tech);
  letter-spacing: 0;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.2);
  transition: width 0.2s ease;
}

.timeline-block input {
  font-family: var(--font-tech);
}

/* Knob SVG Styles */
.knob-control svg circle {
  transition: stroke-dashoffset 0.1s linear;
}
.knob-control svg circle:last-child {
  /* The value ring */
  filter: drop-shadow(0 0 2px var(--color-primary));
}

/* Scrollbars */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
  background: var(--bg-app);
}
::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}
