/**
 * AIDB Text Selection Search - Floating Tooltip
 */

.aidb-tss-tooltip {
    position: absolute;
    z-index: 999999;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: #1a1a2e;
    color: #fff;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
    cursor: pointer;
    white-space: nowrap;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18), 0 1px 4px rgba(0, 0, 0, 0.1);
    transition: opacity 0.2s ease, transform 0.2s ease, background 0.15s ease;
    pointer-events: auto;
    user-select: none;
    -webkit-user-select: none;
    line-height: 1;
}

.aidb-tss-tooltip::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 7px solid transparent;
    border-right: 7px solid transparent;
    border-top: 7px solid #1a1a2e;
}

.aidb-tss-tooltip:hover {
    background: #667eea;
}

.aidb-tss-tooltip:hover::after {
    border-top-color: #667eea;
}

.aidb-tss-tooltip:active {
    transform: translateX(-50%) scale(0.96);
}

.aidb-tss-tooltip svg {
    flex-shrink: 0;
    opacity: 0.9;
}
