body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #1b1b1f;
  color: #eee;
  display: flex;
  height: 100vh;
  overflow: hidden;
}

/* LEFT SIDEBAR */

.controls {
  width: 280px;
  padding: 16px;
  box-sizing: border-box;
  background: #121217;
  border-right: 1px solid #333;
  overflow-y: auto;
}

h1 {
  font-size: 18px;
  margin: 0 0 8px;
}

.subtitle {
  font-size: 12px;
  margin-bottom: 16px;
  color: #aaa;
}

.group-title {
  margin-top: 14px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #8fa2ff;
}

.slider-group {
  margin: 6px 0 10px;
}

.slider-label {
  font-size: 13px;
  display: flex;
  justify-content: space-between;
  margin-bottom: 2px;
}

.slider-label span.value {
  color: #ffd96b;
  margin-left: 8px;
  min-width: 70px;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

input[type="range"] {
  width: 100%;
}

input[type="color"] {
  width: 100%;
  height: 28px;
  padding: 0;
  border: 1px solid #333;
  border-radius: 4px;
  background: #181822;
  cursor: pointer;
}

/* PRESET + EXPORT */

.preset-row {
  margin-top: 6px;
}

#presetSelect {
  width: 100%;
  padding: 4px 6px;
  border-radius: 4px;
  border: 1px solid #333;
  background: #181822;
  color: #eee;
  font-size: 12px;
}

.preset-buttons,
.export-buttons {
  display: flex;
  gap: 6px;
  margin-top: 6px;
  flex-wrap: wrap;
}

button {
  flex: 1;
  padding: 6px 8px;
  font-size: 12px;
  border-radius: 4px;
  border: 1px solid #3a3a4a;
  background: #1f1f2a;
  color: #eee;
  cursor: pointer;
  transition: background 0.15s, transform 0.07s;
}

button:hover {
  background: #29293a;
}

button:active {
  transform: scale(0.97);
}

.export-buttons button {
  flex: 1 0 100%;
  background: #2064ff;
  border-color: #2064ff;
}

.export-buttons button:hover {
  background: #2c73ff;
}

.footer-hint {
  margin-top: 12px;
  font-size: 11px;
  color: #777;
}

/* RIGHT SIDE: PREVIEW */

.preview {
  flex: 1;
  display: flex;
  padding: 16px;
  background: radial-gradient(circle at top, #252538, #050509);
  box-sizing: border-box;
}

.main-svg-wrapper {
  flex: 1;
  height: 100%;
}

/* Dark "card" for the drawing */
svg {
  width: 100%;
  height: 100%;
  background: #0f0f14; /* dark tone instead of white */
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.6);
  border-radius: 6px;
  cursor: grab; /* hint that you can pan */
}
