
.viewer-loader {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 100;
  color: white;
  flex-direction: column;
}

.loader {
  text-align: center;
}

.loader-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid rgba(255, 255, 255, 0.3);
  border-top: 4px solid #3b82f6;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 10px;
}

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

.actions {
  display: flex;
  position: absolute;
  margin: 10px;
  border-radius: 5px;
  right:0;
  z-index: 10;
}

.btn-close{
  color:#fff;
  font-size: 20px;
  background: #d50202;
  border-radius: 5px;
  border-color: #b90303;
  cursor: pointer;
  min-width: 30px;
}

.viewer-root {
  position: relative;
  width: 100%;
  height: 100%;
  /* border-radius: 16px; */
  overflow: hidden;
  background: radial-gradient(circle at top, #1c2040 0%, #0b0f1c 55%, #070911 100%);
  box-shadow:
    0 20px 60px rgba(5, 8, 20, 0.55),
    inset 0 0 0 1px rgba(255, 255, 255, 0.05);
    cursor: default;
}

.viewer-canvas {
  position: absolute;
  inset: 0;
  cursor: default;
}

.viewer-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  cursor: default;
}

.viewer-hint {
  position: absolute;
  bottom: 16px;
  left: 16px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.85);
  color: #e2e8f0;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 1px solid rgba(148, 163, 184, 0.2);
  pointer-events: none;
}

.anatomy-label {
  position: absolute;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffffff;
  padding: 6px 12px;
  border-radius: 999px;
  pointer-events: auto;
  user-select: none;
  font-size: 13px;
  letter-spacing: 0.2px;
  white-space: nowrap;
  z-index: 100;
  display: none;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 6px 18px rgba(5, 8, 20, 0.45);
  backdrop-filter: blur(10px);
}

.anatomy-label .close {
  margin-left: 10px;
  cursor: pointer;
  color: #ff8b8b;
  font-weight: 700;
  font-size: 16px;
  border: none;
  background: transparent;
  padding: 0;
  line-height: 1;
}

.anatomy-label .close:hover {
  color: #ffb3b3;
}

/* ── Camera Controls ── */
.camera-controls {
  position: absolute;
  bottom: 50px;
  left: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  z-index: 50;
}

.cam-btn {
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(8px);
  color: #e2e8f0;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, transform 0.15s;
}

.cam-btn:hover {
  background: rgba(51, 153, 255, 0.35);
  transform: scale(1.1);
}

.cam-btn:active {
  transform: scale(0.95);
}
