* { box-sizing: border-box; font-family: system-ui, sans-serif; }

body {
  margin: 0;
  display: flex;
  height: 100vh;
  background: #111;
  color: #fff;
  overflow: hidden;
}

/* SIDEBAR */
#sidebar {
  width: 180px;
  background: #1c1f2a;
  display: flex;
  flex-direction: column;
  padding: 10px;
  gap: 10px;
  overflow-y: auto;
}

#sidebar h4 {
  margin: 0;
  font-size: 16px;
  text-align: center;
  color: #cbd5f5;
}

#library {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.library-item {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #222538;
  border-radius: 6px;
  padding: 6px;
  cursor: grab;
  color: #fff;
  transition: background 0.2s;
}

.library-item:hover { background: #333652; }

.library-item img { width: 40px; height: 40px; margin-right: 6px; }

/* MAIN STAGE */
#main { flex: 1; display: flex; justify-content: center; align-items: center; overflow: auto; }
#stage-wrapper { background: #222; padding: 10px; }
#stage { position: relative; width: 1920px; height: 1080px; background: #000; overflow: hidden; }

/* FLOATING PROPERTIES PANEL */
#properties-panel {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 220px;
  background: #1c1f2a;
  padding: 10px;
  border-radius: 8px;
  box-shadow: 0 0 10px #000;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 999;
  user-select: none;
}

#properties-panel h4 { text-align: center; margin: 0; font-size: 16px; }

#properties-panel select,
#properties-panel input[type="number"],
#properties-panel input[type="checkbox"],
#properties-panel input[type="file"] {
  width: 100%;
  padding: 4px;
  background: #2a2d3f;
  border: none;
  border-radius: 4px;
  color: #fff;
}

/* CONTROLS */
.control {
  position: absolute;
  border: 1px dashed #888;
  color: #fff;
  cursor: move;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}

.wheel { border-radius: 50%; }
.fader { width: 20px; height: 100px; background: #555; }
.dial { width: 40px; height: 40px; border-radius: 50%; background: #888; }
.button { width: 80px; height: 40px; background: #444; border-radius: 4px; }
.label { width: 100px; height: 20px; background: #333; border-radius: 2px; }

/* BOTTOM PANEL */
#bottom-panel {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
}
#bottom-panel button {
  padding: 6px 12px;
  border: none;
  border-radius: 6px;
  background: #4f46e5;
  color: #fff;
  cursor: pointer;
}
#bottom-panel button:hover { background: #6366f1; }