/**
 * Lasertack 3D Viewer CSS v1.11
 */

.lasertack-3d-container {
  position: relative;
  width: 100%;
  margin: 0 auto;
}

.lasertack-3d-model-viewer {
  width: 100%;
  height: 600px;
  background-color: #0F1111;
}

/* Dimension dot styles (invisible but needed for positioning) */
.dot {
  display: none;
}

/* Dimension label styles */
.dim {
  border-radius: 4px;
  border: none;
  box-sizing: border-box;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.25);
  color: white;
  background-color: #0486FF;
  display: block;
  font-family: Arial, sans-serif;
  font-size: 1em;
  font-weight: 700;
  max-width: 128px;
  overflow-wrap: break-word;
  padding: 0.5em 1em;
  position: absolute;
  width: max-content;
  height: max-content;
  transform: translate3d(-50%, -50%, 0);
  pointer-events: none;
  --min-hotspot-opacity: 0;
}

/* Dimension line container and lines */
.dimensionLineContainer {
  pointer-events: none;
  display: block;
}

.dimensionLine {
  stroke: #0486FF;
  stroke-width: 2;
  stroke-dasharray: 2;
}

/* Hide utility class */
.hide {
  display: none;
}

/* Environment selector dropdown */
.lasertack-3d-controls {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.lasertack-3d-control {
  margin-right: 15px;
}

.lasertack-3d-control label {
  margin-right: 5px;
  font-weight: bold;
}

.lasertack-3d-control select,
.lasertack-3d-control input[type="checkbox"] {
  padding: 5px;
  border-radius: 4px;
  border: 1px solid #ddd;
}

/* Buttons */
.reset-view-button,
.fullscreen-button {
  background-color: #0486FF;
  color: white;
  border: none;
  border-radius: 4px;
  padding: 5px 10px;
  cursor: pointer;
  font-weight: 600;
  transition: background-color 0.3s;
}

.reset-view-button:hover,
.fullscreen-button:hover {
  background-color: #0368c8;
}

/* Loading indicator */
.loading-container {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

.loading-spinner {
  width: 50px;
  height: 50px;
  border: 5px solid rgba(0, 0, 0, 0.1);
  border-radius: 50%;
  border-top-color: #0486FF;
  animation: spin 1s linear infinite;
  margin-bottom: 10px;
}

.loading-text {
  font-family: Arial, sans-serif;
  font-size: 14px;
  color: #333;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}