/* Tooltip */
.tooltip {
    position: fixed;
    background: var(--tooltipBg, #000);
    color: var(--tooltipColor, #ffffff);
    padding: 0.5rem 0.75rem;
    border-radius: 4px;
    font-size: 0.85rem;
    z-index: 10001;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s ease;
    transform: translate(-50%, -100%);
    margin-top: -10px;
    max-width: 250px;
    white-space: normal;
    text-align: center;
    line-height: 1.4;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.tooltip.tooltip-bottom {
    transform: translate(-50%, 0);
    margin-top: 10px;
}

.tooltip.active {
    opacity: 1;
}

.tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: var(--tooltipBg, #000) transparent transparent transparent;
}

.tooltip.tooltip-bottom::after {
    top: auto;
    bottom: 100%;
    border-color: transparent transparent var(--tooltipBg, #000) transparent;
}
