/* Base popover */
.custom-popover {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 99;
  background: #fff;
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  transform-origin: center center;
}

/* Active state */
.custom-popover.active {
  opacity: 1;
  pointer-events: auto;
}

/* Positioning (always centered) */
.custom-popover.pos-top {
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translate(-50%, 6px) scale(0.95);
}
.custom-popover.pos-top.active {
  transform: translate(-50%, 0) scale(1);
}

.custom-popover.pos-bottom {
  top: calc(100% + 8px);
  left: 50%;
  transform: translate(-50%, -6px) scale(0.95);
}
.custom-popover.pos-bottom.active {
  transform: translate(-50%, 0) scale(1);
}

.custom-popover.pos-right {
  left: calc(100% + 8px);
  top: 50%;
  transform: translate(-6px, -50%) scale(0.95);
}
.custom-popover.pos-right.active {
  transform: translate(0, -50%) scale(1);
}

.custom-popover.pos-left {
  right: calc(100% + 8px);
  top: 50%;
  transform: translate(6px, -50%) scale(0.95);
}
.custom-popover.pos-left.active {
  transform: translate(0, -50%) scale(1);
}

/* Follow cursor mode */
.custom-popover.follow-cursor {
  left: 0;
  top: 0;
  transform: translate(0, 0) scale(0.95);
}
.custom-popover.follow-cursor.active {
  transform: translate(0, 0) scale(1);
}

/* Animations */
.custom-popover.fade {
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.custom-popover.slide {
  transition: opacity 0.25s ease, transform 0.3s ease;
}
.custom-popover.zoom {
  transition: opacity 0.25s ease, transform 0.25s ease;
}

/* Cursor */
/* Custom Cursor Styles */
.custom-cursor {
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  opacity: 0;
  transform: scale(0);
  transition: all 0.3s ease;
}

.custom-cursor.active {
  opacity: 1;
  transform: scale(1);
}

/* Fade Animation */
.custom-cursor.fade {
  transition: opacity 0.3s ease;
  transform: none;
}

.custom-cursor.fade.active {
  opacity: 1;
}

/* Scale Animation */
.custom-cursor.scale {
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.custom-cursor.scale.active {
  opacity: 1;
  transform: scale(1);
}

/* Blur Scale Animation */
.custom-cursor.blur-scale {
  filter: blur(5px);
  transition: transform 0.3s ease, opacity 0.3s ease, filter 0.3s ease;
}

.custom-cursor.blur-scale.active {
  opacity: 1;
  transform: scale(1);
  filter: blur(0px);
}

/* Custom cursor content styling */
.custom-cursor img {
  max-width: 50px;
  max-height: 50px;
  display: block;
}

.custom-cursor {
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 8px 12px;
  border-radius: 4px;
  font-size: 14px;
  white-space: nowrap;
  max-width: 200px;
}
