.configurator {
  display: flex;
  flex-direction: column;
  height: 100vh;
  min-width: 0;
  background: var(--color-surface);
}

.main-container {
  display: flex;
  flex: 1;
  min-height: 0;
  height: auto;
  background: var(--color-bg);
}

.main-content {
  flex: 1;
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  background: var(--color-surface);
  position: relative;
}

.canvas-container {
  position: relative;
  flex: 1;
  min-height: 0;
  overflow: hidden;
  background: #ffffff;
  transition: background-color 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 9998 !important;
}

#cadCanvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  background: #ffffff;
  z-index: 1;
}

@media (max-width: 1200px) {
  :root {
    --sidebar-width: 200px;
  }
}

@media (max-width: 768px) {
  .main-container {
    flex-direction: column;
  }

  .sidebar.left-sidebar,
  .sidebar.right-sidebar {
    width: 100%;
    height: auto;
    max-height: 40vh;
  }

  .canvas-container {
    min-height: 200px;
    flex: 1 1 auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .canvas-container {
    transition: none;
  }
}
