body {
  margin: 0;
  overflow: hidden;
  font-family: sans-serif;
}

#ui {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 100;
}

button {
  margin: 5px;
  padding: 8px 12px;
}

button.active {
  background: #84ab11;
  color: white;
}

#view-buttons {
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
}

#view-buttons button {
  font-size: 12px;
  padding: 8px 6px;
}

#view-buttons button.active {
  background: #84ab11;
  color: white;
}

#panel-2d {
  position: absolute;
  right: 20px;
  top: 20px;
  background: rgba(255, 255, 255, 0.97);
  padding: 20px;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
  width: 260px;
  max-height: 90vh;
  overflow-y: auto;
  z-index: 100;
  font-family: Arial, sans-serif;
}

#panel-2d h3 {
  margin: 0 0 18px 0;
  text-align: center;
  color: #222;
  font-size: 18px;
}

#color-thumbnails {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.thumb {
  cursor: pointer;
  border-radius: 12px;
  overflow: hidden;
  border: 3px solid transparent;
  transition: all 0.25s ease;
  background: white;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.thumb:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
}

.thumb.active {
  border-color: #84ab11;
  transform: scale(0.98);
  box-shadow: 0 0 0 4px rgba(132, 171, 17, 0.2);
}

.thumb img {
  width: 100%;
  height: 90px;
  -o-object-fit: cover;
     object-fit: cover;
  display: block;
}

.thumb span {
  display: block;
  text-align: center;
  padding: 8px 4px;
  font-size: 13px;
  background: #f8f8f8;
  color: #333;
}

.thumb-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

#width-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.width-btn {
  padding: 10px 14px;
  border: 2px solid #ccc;
  background: white;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.2s;
}

.width-btn:hover {
  border-color: #84ab11;
  background: #f0f8ff;
}

.width-btn.active {
  background: #84ab11;
  color: white;
  border-color: #84ab11;
}

.wall-btn {
  border-radius: 8px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.2s;
}

.wall-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.wall-btn.active {
  border-color: #84ab11;
  box-shadow: 0 0 0 3px rgba(132, 171, 17, 0.2);
  transform: scale(1.1);
}

#apply-wall-color {
  margin-left: 10px;
  padding: 6px 10px;
}

#panel-2d {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 1;
  transform: translateX(0);
}

#panel-2d.hidden {
  opacity: 0;
  transform: translateX(320px);
  pointer-events: none;
}

body.mode-2d #renderer-container,
body.mode-2d canvas {
  transform: scale(0.6);
  transform-origin: left center;
  transition: transform 0.5s ease;
}

body.mode-2d #ui {
  transition: transform 0.5s ease;
}

#mode-switcher {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
  z-index: 200;
}

.mode-btn {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.9);
  border: 3px solid #84ab11;
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.mode-btn:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.2);
}

.mode-btn.active {
  background: #84ab11;
  color: white;
  transform: scale(1.1);
}

#view-buttons {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 15px;
}

#view-buttons button {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.9);
  border: 2px solid #ddd;
  cursor: pointer;
  font-size: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
  -webkit-backdrop-filter: blur(8px);
          backdrop-filter: blur(8px);
}

#view-buttons button:hover {
  background: #84ab11;
  color: white;
  border-color: #84ab11;
  transform: translateY(-3px);
}

#view-buttons button.active {
  background: #84ab11;
  color: white;
  border-color: #84ab11;
  box-shadow: 0 0 0 3px rgba(132, 171, 17, 0.2);
}

.floating-btn {
  position: absolute;
  left: 250px;
  top: 20px;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #84ab11;
  color: white;
  border: none;
  font-size: 30px;
  cursor: pointer;
  box-shadow: 0 8px 25px rgba(132, 171, 17, 0.2);
  transition: all 0.4s ease;
  z-index: 500;
  animation: pulse 3s infinite;
}

.floating-btn:hover {
  transform: scale(1.15) rotate(15deg);
}

.floating-btn .badge {
  position: absolute;
  top: -8px;
  right: -8px;
  background: #ff4757;
  color: white;
  font-size: 12px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

@keyframes pulse {
  0%, 100% {
    box-shadow: 0 8px 25px rgba(132, 171, 17, 0.2);
  }
  50% {
    box-shadow: 0 8px 40px rgba(132, 171, 17, 0.4666666667);
  }
}
#config-panel {
  position: fixed;
  right: -380px;
  top: 0;
  width: 360px;
  height: 100vh;
  background: rgba(255, 255, 255, 0.98);
  -webkit-backdrop-filter: blur(12px);
          backdrop-filter: blur(12px);
  box-shadow: -10px 0 40px rgba(0, 0, 0, 0.2);
  transition: right 0.6s cubic-bezier(0.22, 0.61, 0.36, 1);
  z-index: 1000;
  overflow-y: auto;
  padding: 20px;
  box-sizing: border-box;
}

#config-panel.open {
  right: 0;
}

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 2px solid #eee;
}

.close-btn {
  font-size: 32px;
  background: none;
  border: none;
  cursor: pointer;
  opacity: 0.6;
  transition: all 0.3s;
}

.close-btn:hover {
  opacity: 1;
  transform: rotate(90deg);
}

#view-buttons button:hover {
  transform: translateY(-6px) scale(1.1);
  background: #84ab11;
  color: white;
  border-color: #84ab11;
  box-shadow: 0 10px 25px rgba(132, 171, 17, 0.2);
}

#view-buttons button.active {
  background: #84ab11;
  color: white;
  transform: scale(1.2);
  animation: bounce 0.6s;
}

@keyframes bounce {
  0%, 100% {
    transform: scale(1.2);
  }
  50% {
    transform: scale(1.35);
  }
}
#renderer-container {
  transition: all 0.7s cubic-bezier(0.25, 0.8, 0.25, 1);
  transform-origin: top left;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.3);
}

body.mode-2d #renderer-container {
  transform: translate(30px, 30px) scale(0.42);
  z-index: 950;
}

#ui {
  transition: transform 0.6s ease;
  z-index: 980;
}

#preview-2d {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80%;
  height: 100%;
  z-index: 400;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.7s ease;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
  background: #f0f0f0;
}

#preview-2d-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
}

body.mode-2d #preview-2d {
  opacity: 1;
  pointer-events: auto;
}

#preview-2d #wall-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  -o-object-fit: contain;
     object-fit: contain;
}

#door-2d-image {
  width: auto;
  height: auto;
  max-height: 70%;
  position: absolute;
  left: 31%;
  top: 16.3%;
  z-index: 4;
}

#scene-background {
  z-index: 3;
  opacity: 0.9;
  position: absolute;
  width: 100%;
  height: 100%;
}

#wall-overlay {
  z-index: 2;
  background: #bb9966;
  opacity: 0.75;
  pointer-events: none;
}

body.mode-2d #renderer-container {
  opacity: 0 !important;
  pointer-events: none !important;
}

#wall-color-control {
  position: fixed;
  left: 250px;
  top: 80px;
  background: rgba(255, 255, 255, 0.95);
  color: white;
  padding: 15px 20px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  z-index: 1000;
  min-width: 240px;
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-family: system-ui, sans-serif;
  display: none;
}

#wall-color-control h4 {
  margin: 0 0 12px 0;
  font-size: 15px;
  color: #fff;
}

#wall-color-control input[type=color] {
  width: 100%;
  height: 50px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
}

#wall-color-control button {
  margin-top: 10px;
  width: 100%;
  padding: 10px;
  background: #bb9966;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
}

#wall-color-control button:hover {
  background: #ccaa77;
}

#toggle-config.active {
  transform: rotate(45deg);
}/*# sourceMappingURL=ui.css.map */