/* Styles for colormap anchors */
.colormap-anchors-container {
  z-index: 10;
  position: absolute;
  top: 0;
  left: o;
  width: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.colormap-anchor {
  transition: all 0.2s ease;
}

.colormap-anchor:hover {
  background-color: rgba(0, 0, 0, 0.9) !important;
}

.colormap-anchor:hover>div {
  border-top-color: rgba(0, 0, 0, 0.9) !important;
}

.colormap-anchor:hover:after {
  content: attr(data-position);
  position: absolute;
  top: -30px;
  left: 50%;
  transform: translateX(-50%);
  background-color: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 12px;
  white-space: nowrap;
}

.anchor {
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  position: absolute;
  top: 50%;
  cursor: pointer;
  transform: translate(-50%, -50%);
  box-sizing: border-box;
  border: 2px solid rgba(245, 245, 245, 0.733);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.45), 0 1px 0 rgba(255, 255, 255, 0.02) inset;
  pointer-events: auto;
  transition: transform .12s ease;
}

.anchor.active {
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.8);
  border: 3px solid white;
}

.anchor:hover {
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.7);
}

/* Snap point indicators */
.snap-indicators-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 5;
}

.snap-point {
  position: absolute;
  width: 1px;
  height: 40%;
  top: 30%;
  background-color: rgba(255, 255, 255, 0.5);
  transform: translateX(-50%);
  pointer-events: none;
}

/* Step indicator */
.step-indicator {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 4;
}

.step-line {
  position: absolute;
  width: 1px;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.3);
  transform: translateX(-50%);
}

/* Ghost anchor for smooth mode */
.ghost-anchor {
  position: absolute;
  top: 30%;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px dashed rgba(0, 0, 0, 0.5);
  background: rgba(255, 255, 255, 0.7);
  transform: translateX(-50%);
  pointer-events: none;
  z-index: 2;
}

/* Snap tooltip */
.snap-tooltip {
  position: fixed;
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  pointer-events: none;
  z-index: 1000;
  transform: translate(-50%, -100%);
  margin-top: -5px;
}

/* Styles for franja and boundary elements */
.franja {
  position: absolute;
  top: 0;
  height: 100%;
  cursor: pointer;
  z-index: 1;
}

.franja.active {
  outline: 2px solid rgba(0, 0, 0, 0.5);
  outline-offset: -2px;
}

.boundary {
  position: absolute;
  width: 10px;
  height: 120%;
  top: -10%;
  transform: translateX(-50%);
  cursor: ew-resize;
  z-index: 10;
  pointer-events: auto;
  background: rgba(255, 255, 255, 0.3);
  border: 1px solid rgba(0, 0, 0, 0.2);
  border-radius: 2px;
}

.boundary:hover {
  background: rgba(0, 0, 0, 0.2);
}

