/**
 * KITAVOTE Universal Floating Tooltip Bubble
 * Modern, High-Contrast SaaS Tooltip with Directional Arrow
 */

.kitavote-tooltip-bubble {
    position: fixed;
    z-index: 99999;
    pointer-events: none;
    max-width: 280px;
    padding: 6px 12px;
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.45;
    color: #ffffff;
    background: #09245C;
    background: linear-gradient(135deg, #09245C 0%, #0d347d 100%);
    border: 1px solid rgba(56, 189, 248, 0.35);
    border-radius: 8px;
    box-shadow: 0 10px 25px -4px rgba(9, 36, 92, 0.4), 0 4px 10px -2px rgba(0, 0, 0, 0.25);
    opacity: 0;
    transform: scale(0.92) translateY(4px);
    transition: opacity 0.18s cubic-bezier(0.16, 1, 0.3, 1), transform 0.18s cubic-bezier(0.16, 1, 0.3, 1);
    word-wrap: break-word;
    text-align: center;
    backdrop-filter: blur(8px);
}

.kitavote-tooltip-bubble.is-visible {
    opacity: 1;
    transform: scale(1) translateY(0);
}

/* Tooltip Arrow */
.kitavote-tooltip-bubble::after {
    content: '';
    position: absolute;
    width: 8px;
    height: 8px;
    background: #09245C;
    border: 1px solid rgba(56, 189, 248, 0.35);
    transform: rotate(45deg);
}

/* Top positioning arrow (arrow points down) */
.kitavote-tooltip-bubble.pos-top::after {
    bottom: -5px;
    left: 50%;
    margin-left: -4px;
    border-top: none;
    border-left: none;
}

/* Bottom positioning arrow (arrow points up) */
.kitavote-tooltip-bubble.pos-bottom::after {
    top: -5px;
    left: 50%;
    margin-left: -4px;
    border-bottom: none;
    border-right: none;
}

/* Left positioning arrow (arrow points right) */
.kitavote-tooltip-bubble.pos-left::after {
    right: -5px;
    top: 50%;
    margin-top: -4px;
    border-bottom: none;
    border-left: none;
}

/* Right positioning arrow (arrow points left) */
.kitavote-tooltip-bubble.pos-right::after {
    left: -5px;
    top: 50%;
    margin-top: -4px;
    border-top: none;
    border-right: none;
}

