.loader-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 100;
  color: white;
}

.loader {
  text-align: center;
}

.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;
  /* background: #313131; */
  position: absolute;
  /* padding: 10px; */
  margin: 10px;
  border-radius: 5px;
  right:0;
}

.btn-close{
  color:#fff;
  font-size: 20px;
  font-weight: bold;
  background: #d50202;
  border-radius: 5px;
  border-color: #b90303;
  cursor: pointer;
  min-width: 30px;
}

.annotation {
  bottom: 0;
  display: flex;
  background: #313131;
  color: #d1d1d1;
  position: absolute;
  padding: 10px;
  margin: 10px;
  border-radius: 5px;
}
.preview-mode {
  display: flex;
  background: #313131;
  color: #d1d1d1;
  position: absolute;
  padding: 10px;
  margin: 10px;
  border-radius: 5px;
}
.hotspot-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.hotspot-dot {
  width: 16px;
  height: 16px;
  background: #2563eb;
  border-radius: 50%;
  border: 2px solid white;
  cursor: pointer;
  z-index: 2;
  flex-shrink: 0;
}

.hotspot-container {
  display: flex;
  align-items: center;
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  white-space: nowrap;
}

.hotspot-line {
  width: clamp(40px, 15vw, 200px);
  border-top: 2px dashed #ffffff;
  flex-shrink: 0;
}

.hotspot-tooltip {
  background: white;
  padding: 10px 14px;
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  font-size: 14px;
  margin-right: 8px;
  max-width: clamp(120px, 40vw, 280px);
  word-wrap: break-word;
  overflow-wrap: break-word;
  white-space: normal;
}

.tooltip-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  margin-bottom: 4px;
  color: #444;
  gap: 8px;
}

.close-btn {
  background: none;
  border: none;
  font-size: 14px;
  cursor: pointer;
  flex-shrink: 0;
}

.hotspot-tooltip p {
  margin: 0;
  font-size: 13px;
  color: #444;
}

/* ── Responsive: small screens ── */
@media (max-width: 600px) {
  .hotspot-container {
    flex-direction: column-reverse;
    right: auto;
    left: 50%;
    top: auto;
    bottom: 100%;
    transform: translateX(-50%);
    align-items: center;
    margin-bottom: 6px;
  }

  .hotspot-line {
    width: 2px;
    height: 24px;
    border-top: none;
    border-left: 2px dashed #ffffff;
  }

  .hotspot-tooltip {
    max-width: 60vw;
    font-size: 13px;
    padding: 8px 10px;
    margin-right: 0;
    margin-bottom: 4px;
    text-align: center;
  }

  .tooltip-header {
    font-size: 13px;
    justify-content: center;
  }
}

@media (max-width: 400px) {
  .hotspot-tooltip {
    max-width: 50vw;
    font-size: 12px;
    padding: 6px 8px;
  }
}

