body {
  margin: 0;
  font-family: Arial, sans-serif;
  background-color: #1e1e2e;
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
}

.app-container {
  display: flex;
  width: 950px;
  height: 650px;
  background-color: #2b2b3d;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  overflow: hidden;
}

.sidebar {
  width: 320px;
  padding: 20px;
  background: #232334;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow-y: auto;
  box-sizing: border-box;
}

.sidebar h2 {
  margin-top: 0;
  margin-bottom: 5px;
}

.sidebar label {
  font-size: 0.85rem;
  font-weight: bold;
}

.sidebar input[type="text"] {
  width: 90%;
  padding: 8px;
  border-radius: 6px;
  border: 1px solid #444;
  background: #1e1e2e;
  color: #2ecc71;
  font-family: monospace;
  font-size: 0.8rem;
}

.sidebar input[type="number"] {
  padding: 6px;
  border-radius: 6px;
  border: 1px solid #444;
  background: #1e1e2e;
  color: white;
}

.sidebar input[type="color"] {
  height: 35px;
  padding: 2px;
  cursor: pointer;
  width: 100%;
}

button {
  padding: 10px;
  background-color: #2563eb;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
}

button:hover {
  background-color: #1d4ed8;
}

#updateBtn {
  background-color: #4f46e5;
}

#updateBtn:hover {
  background-color: #4338ca;
}

.viewport {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  perspective: 1000px;
}

.scene {
  width: 400px;
  height: 400px;
  display: flex;
  justify-content: center;
  align-items: center;
  transform-style: preserve-3d;
}

.room-3d {
  width: 350px;
  height: 200px;
  position: relative;
  transform-style: preserve-3d;
  transform: rotateX(60deg) rotateZ(-45deg);
  transition: transform 0.1s ease, width 0.3s ease, height 0.3s ease;
}

.face {
  position: absolute;
  opacity: 0.85;
  border: 2px solid rgba(255,255,255,0.2);
}

.floor {
  width: 100%;
  height: 100%;
  background-color: #2ecc71;
  transform: rotateX(0deg);
}

.wall {
  background-color: #ff5733;
}

.wall.back {
  width: 100%;
  height: 150px;
  transform: rotateX(-90deg);
  transform-origin: top;
}

.wall.left {
  width: 150px;
  height: 100%;
  transform: rotateY(90deg);
  transform-origin: left;
}

.hint {
  margin-top: 10px;
  color: #888;
  font-size: 0.85rem;
}
