/**
 * Custom tooltip styles for tags
 */
.custom-tooltip {
    position: fixed;
    z-index: 9999;
    background-color: rgba(0, 0, 0, 0.8);
    color: #fff;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 14px;
    max-width: 300px;
    word-wrap: break-word;
    pointer-events: none;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15), 0 1px 3px rgba(0, 0, 0, 0.3);
    transition: opacity 0.2s ease-in-out, transform 0.2s ease-in-out;
    line-height: 1.5;
    backdrop-filter: blur(2px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transform-origin: top left;
}

/* Arrow for tooltip - more refined */
.custom-tooltip:after {
    content: '';
    position: absolute;
    top: -6px;
    left: 15px;
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 6px solid rgba(0, 0, 0, 0.8);
    filter: drop-shadow(0 -1px 1px rgba(0, 0, 0, 0.1));
}

/* Enhanced animations for tooltip */
@keyframes tooltipFadeIn {
    from { 
        opacity: 0; 
        transform: translateY(-5px) scale(0.98);
    }
    to { 
        opacity: 1; 
        transform: translateY(0) scale(1);
    }
}

.custom-tooltip {
    animation: tooltipFadeIn 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    will-change: opacity, transform;
}

/* Ensure tag elements show the cursor pointer to indicate interactivity */
.tag-with-tooltip {
    cursor: pointer;
}
