/* ========================================== */
/* INFO TOOLTIP STYLES                        */
/* Reusable tooltip component for info icons  */
/* ========================================== */

.info-tooltip {
    position: relative;
    display: inline-block;
    cursor: help;
    margin-left: 4px;
}

.info-tooltip i {
    color: #6366f1;
    font-size: 0.85em;
    opacity: 0.7;
    transition: opacity 0.2s, transform 0.2s;
}

.info-tooltip:hover i {
    opacity: 1;
    transform: scale(1.1);
}

.info-tooltip::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #1e293b, #0f172a);
    color: white;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 400;
    line-height: 1.4;
    white-space: normal;
    width: 200px;
    max-width: 280px;
    text-align: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s, transform 0.3s;
    z-index: 10000;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3);
    pointer-events: none;
}

.info-tooltip::before {
    content: '';
    position: absolute;
    bottom: 115%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: #1e293b;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    z-index: 10000;
}

.info-tooltip:hover::after,
.info-tooltip:hover::before {
    opacity: 1;
    visibility: visible;
}

/* Alternative position - bottom */
.info-tooltip.tooltip-bottom::after {
    bottom: auto;
    top: 125%;
}

.info-tooltip.tooltip-bottom::before {
    bottom: auto;
    top: 115%;
    border-top-color: transparent;
    border-bottom-color: #1e293b;
}

/* Timeline specific tooltips - smaller */
.timeline-label .info-tooltip::after {
    width: 180px;
    font-size: 0.7rem;
    padding: 8px 12px;
}

.timeline-label .info-tooltip i {
    font-size: 0.65rem;
    color: #94a3b8;
}

.timeline-label .info-tooltip:hover i {
    color: #6366f1;
}

/* Form label tooltips */
label .info-tooltip {
    vertical-align: middle;
}

label .info-tooltip i {
    color: #6366f1;
    font-size: 0.8em;
}

/* Filter header tooltips */
h4 .info-tooltip i {
    font-size: 0.75em;
}