.custom-tooltip {
    position: fixed;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    padding: 12px 20px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
    pointer-events: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    z-index: 2147483647;
    border: 2px solid rgba(255, 255, 255, 0.4);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transform: scale(0);
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    left: var(--tooltip-x, 0);
    top: var(--tooltip-y, 0);
}

.custom-tooltip.visible {
    opacity: 1;
    transform: translateX(-50%) scale(1);
}

.custom-tooltip.pulsing {
    animation: tooltipPulse 2s ease-in-out infinite;
}

.custom-tooltip-arrow {
    position: fixed;
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-bottom: 10px solid #667eea;
    pointer-events: none;
    z-index: 2147483647;
    opacity: 0;
    transform: scale(0);
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    left: var(--arrow-x, 0);
    top: var(--arrow-y, 0);
}

.custom-tooltip-arrow.visible {
    opacity: 1;
    transform: translateX(-50%) scale(1);
}

@keyframes tooltipPulse {
    0%, 100% {
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    }
    50% {
        box-shadow: 0 15px 40px rgba(102, 126, 234, 0.5);
    }
}
