/* 3D Container Styling */
.viewer-wrapper {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.mode-switch {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
  justify-content: center;
}

.mode-switch button {
  background: #1f242d;
  color: #9ca3af;
  border: 1px solid #374151;
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 13px;
  font-weight: 500;
  font-family: inherit;
  letter-spacing: 0.02em;
}

.mode-switch button:hover {
  /* border-color: #58a6ff; */
  border-color: rgba(222, 131, 68, 0.5);
  color: #c9d1d9;
}

.mode-switch button.active {
  /* background: #2563eb; */
  background: rgb(222, 131, 68);
  color: #ffffff;
  /* border-color: #3b82f6; */
  font-weight: 600;
}

#cad-container {
  position: relative;
  width: 100%;
  height: 60vh;
  min-height: 420px;
  max-height: 750px;
  background: radial-gradient(circle at 50% 50%, #1f242e 0%, #111317 100%);
  border-radius: 12px;
  border: 1px solid #2d333f;
  overflow: hidden; /* Prevents scrollbar leaks */
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.45);
}

#cad-container canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100% !important;
  height: 100% !important;
  display: block;
  outline: none;
}

#loading-spinner {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #9ca3af;
  font-size: 14px;
  font-family: inherit;
  letter-spacing: 0.05em;
  pointer-events: none;
}

#hint-overlay {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.7);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
  color: #d1d5db;
  pointer-events: none;
  transition: opacity 0.3s;
}

.hidden {
  opacity: 0;
}
