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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  background: #1a1a1a;
  color: #eee;
  overflow: hidden;
}

#container {
  display: flex;
  height: 100vh;
  width: 100vw;
}

#scene-container {
  flex: 1;
  position: relative;
}

#scene-container canvas {
  display: block;
}

#controls {
  width: 280px;
  background: #252525;
  padding: 20px;
  overflow-y: auto;
  border-left: 1px solid #444;
}

#controls h3 {
  margin-bottom: 15px;
  font-size: 18px;
  color: #fff;
}

#controls h4 {
  margin: 15px 0 10px;
  font-size: 14px;
  color: #ccc;
}

.control-group {
  margin-bottom: 15px;
}

.camera-type-selector {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 14px;
}

.camera-type-selector label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

button {
  background: #3a3a3a;
  color: #fff;
  border: 1px solid #555;
  padding: 8px 12px;
  margin-right: 5px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  transition: background 0.2s;
}

button:hover {
  background: #4a4a4a;
}

button:active {
  background: #2a2a2a;
}

#layer-count {
  margin-left: 10px;
  font-weight: bold;
  color: #8bc34a;
}

label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 14px;
}

input[type="range"] {
  width: 100%;
  margin-top: 5px;
}

#wireframe-thickness-value {
  font-weight: bold;
  color: #8bc34a;
  min-width: 35px;
  text-align: right;
  display: inline-block;
}


#color-pickers {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.color-picker-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
}

.color-picker-row label {
  flex: 1;
  margin: 0;
}

.color-picker-row input[type="color"] {
  width: 40px;
  height: 25px;
  border: none;
  border-radius: 3px;
  cursor: pointer;
  padding: 0;
  background: transparent;
}

.color-picker-row input[type="color"]::-webkit-color-swatch-wrapper {
  padding: 0;
}

.color-picker-row input[type="color"]::-webkit-color-swatch {
  border: 1px solid #555;
  border-radius: 3px;
}

.opacity-slider {
  flex: 1;
  min-width: 80px;
  margin: 0 8px;
}

.opacity-value {
  font-weight: bold;
  color: #8bc34a;
  min-width: 35px;
  text-align: right;
  font-size: 12px;
}
