/* ==================== Info Tooltip ==================== */

.infoWrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
    margin-left: 6px;
}

.infoIcon {
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 600;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    color: #ccc;
    cursor: pointer;
}

.infoIcon.danger {
    background: rgba(255, 107, 107, 0.15);
    color: #ff6b6b;
}

.infoWrapper:hover .plotTooltip {
    opacity: 1;
    transform: translateY(0);
}
.infoWrapper.active .plotTooltip {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.plotTooltip {
    position: absolute;
    top: 130%;
    left: 0;
    width: 260px;
    padding: 10px;
    background: rgba(10, 12, 32, 0.95);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 8px;
    font-size: 12px;
    line-height: 1.4;
    color: #ccc;
    opacity: 0;
    transform: translateY(-6px);
    pointer-events: none;
    transition: 0.2s ease;
    z-index: 100;
}

/* ==================== Attribute-driven Tooltip (data-tooltip) ==================== */

[data-tooltip] {
    position: relative;
}

[data-tooltip]:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-bottom: 6px;
    padding: 4px 8px;
    background: rgba(0, 0, 0, 0.85);
    color: #fff;
    font-size: 12px;
    white-space: nowrap;
    border-radius: 4px;
    pointer-events: none;
    z-index: 10;
}

[data-tooltip]:hover::before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 4px solid transparent;
    border-top-color: rgba(0, 0, 0, 0.85);
    z-index: 10;
}

/* ==================== Bokeh Hover Tooltip ==================== */

/* Bokeh keeps the tooltip palette in its own shadow root, but puts the element
   in document.body — so a page rule can override its :host variables. */
.bk-Tooltip {
    --tooltip-color: rgba(10, 12, 32, 0.45);
    --tooltip-text: #ffffff;
    --tooltip-border: rgba(255, 255, 255, 0.14);
    --tooltip-arrow-color: rgba(10, 12, 32, 0.45);
    border-radius: 8px;
    padding: 8px 10px;
    font-size: 12px;
}
