* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: #1a1a2e;
  color: #e0e0e0;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

#app {
  max-width: 800px;
  width: 100%;
  padding: 2rem;
}

header {
  text-align: center;
  margin-bottom: 1.5rem;
}

h1 {
  font-size: 2rem;
  letter-spacing: 0.3em;
  color: #e94560;
}

.subtitle {
  font-size: 0.85rem;
  color: #888;
  margin-top: 0.3rem;
}

#status-bar {
  margin-bottom: 1.5rem;
  text-align: center;
}

#status-text {
  font-size: 0.8rem;
  color: #aaa;
}

#progress-bar {
  height: 3px;
  background: #333;
  border-radius: 2px;
  margin-top: 0.4rem;
  overflow: hidden;
}

#progress-fill {
  height: 100%;
  width: 0%;
  background: #e94560;
  transition: width 0.3s;
}

#main-content {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  justify-content: center;
}

#output-canvas {
  border: 2px solid #333;
  border-radius: 8px;
  background: #000;
  flex-shrink: 0;
}

#controls {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-width: 200px;
}

.control-group {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.control-group label {
  font-size: 0.75rem;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.file-label {
  display: block;
  padding: 0.7rem 1rem;
  background: #16213e;
  border: 1px dashed #444;
  border-radius: 6px;
  cursor: pointer;
  text-align: center;
  font-size: 0.85rem;
  transition: border-color 0.2s;
}

.file-label:hover { border-color: #e94560; }
.file-label input { display: none; }

select, button {
  padding: 0.5rem 0.8rem;
  background: #16213e;
  color: #e0e0e0;
  border: 1px solid #333;
  border-radius: 4px;
  font-size: 0.85rem;
  cursor: pointer;
}

button { transition: background 0.2s; }
button:hover:not(:disabled) { background: #e94560; }
button:disabled { opacity: 0.4; cursor: default; }

input[type="range"] {
  accent-color: #e94560;
}

#cfg-value {
  font-size: 0.8rem;
  color: #aaa;
  text-align: center;
}

#perf-stats {
  font-size: 0.7rem;
  color: #666;
  line-height: 1.6;
  margin-top: 0.5rem;
}
