/**
 * Sistema de Tooltips Minimalistas
 * Diseño hermoso y funcional
 */

/* Tooltip container */
.lb-tooltip {
    position: relative;
    display: inline-flex;
    align-items: center;
}

/* Icono de ayuda */
.lb-tooltip-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #e0e7ff;
    color: #4f46e5;
    font-size: 12px;
    font-weight: 600;
    cursor: help;
    margin-left: 6px;
    transition: all 0.2s;
}

.lb-tooltip-icon:hover {
    background: #4f46e5;
    color: white;
    transform: scale(1.1);
}

/* Contenido del tooltip */
.lb-tooltip-content {
    position: absolute;
    bottom: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%);
    background: #1e293b;
    color: white;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 13px;
    line-height: 1.5;
    white-space: nowrap;
    max-width: 300px;
    white-space: normal;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    pointer-events: none;
}

/* Flecha del tooltip */
.lb-tooltip-content::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: #1e293b;
}

/* Mostrar tooltip */
.lb-tooltip:hover .lb-tooltip-content {
    opacity: 1;
    visibility: visible;
    bottom: calc(100% + 8px);
}

/* Variantes de posición */
.lb-tooltip-right .lb-tooltip-content {
    left: calc(100% + 10px);
    bottom: auto;
    top: 50%;
    transform: translateY(-50%);
}

.lb-tooltip-right .lb-tooltip-content::after {
    left: -6px;
    top: 50%;
    transform: translateY(-50%);
    border-top-color: transparent;
    border-right-color: #1e293b;
}

.lb-tooltip-left .lb-tooltip-content {
    right: calc(100% + 10px);
    left: auto;
    bottom: auto;
    top: 50%;
    transform: translateY(-50%);
}

.lb-tooltip-left .lb-tooltip-content::after {
    right: -6px;
    left: auto;
    top: 50%;
    transform: translateY(-50%);
    border-top-color: transparent;
    border-left-color: #1e293b;
}

/* Tooltip en móvil (tap to show) */
@media (max-width: 768px) {
    .lb-tooltip-content {
        position: fixed;
        bottom: 20px;
        left: 20px;
        right: 20px;
        transform: none;
        max-width: none;
    }
    
    .lb-tooltip-content::after {
        display: none;
    }
    
    .lb-tooltip-icon.active + .lb-tooltip-content {
        opacity: 1;
        visibility: visible;
    }
}

/* Variantes de color */
.lb-tooltip-success .lb-tooltip-icon {
    background: #d1fae5;
    color: #065f46;
}

.lb-tooltip-success .lb-tooltip-icon:hover {
    background: #10b981;
    color: white;
}

.lb-tooltip-warning .lb-tooltip-icon {
    background: #fef3c7;
    color: #92400e;
}

.lb-tooltip-warning .lb-tooltip-icon:hover {
    background: #f59e0b;
    color: white;
}

.lb-tooltip-danger .lb-tooltip-icon {
    background: #fee2e2;
    color: #991b1b;
}

.lb-tooltip-danger .lb-tooltip-icon:hover {
    background: #ef4444;
    color: white;
}

/* Helper text con tooltip inline */
.lb-help-text {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #64748b;
    font-size: 13px;
}

/* Badge con tooltip */
.lb-badge-help {
    position: relative;
    cursor: help;
}

