/**
 * CAD Viewer Widget Styles
 */

.cad-viewer-container {
  position: relative;
  display: inline-block;
  overflow: hidden;
  border: 1px solid #ddd;
  border-radius: 4px;
  background: #f0f0f0;
}

.cad-viewer-container canvas {
  display: block;
  outline: none;
}

.cad-viewer-error {
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  padding: 12px 16px;
  background-color: rgba(220, 53, 69, 0.95);
  color: white;
  border-radius: 4px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 14px;
  line-height: 1.4;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.cad-viewer-loading {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 16px 24px;
  background-color: rgba(255, 255, 255, 0.95);
  border-radius: 4px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 14px;
  color: #333;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
