/**
 * Tooltip Styles
 * Reusable tooltip component for admin panel
 */

/* Tooltip wrapper */
.tooltip-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* Tooltip icon */
.tooltip-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 14px;
    height: 14px;
    font-size: 10px;
    font-weight: 700;
    font-family: 'Inter', sans-serif;
    color: var(--text-secondary, #a0a0a0);
    border: 1.5px solid var(--text-secondary, #a0a0a0);
    border-radius: 50%;
    cursor: help;
    opacity: 0.6;
    transition: all 0.2s ease;
    user-select: none;
    line-height: 1;
}

.tooltip-icon:hover {
    opacity: 1;
    color: var(--primary-color, #3b82f6);
    border-color: var(--primary-color, #3b82f6);
}

/* Global Tooltip Element (Fixed Position) */
.global-tooltip {
    position: fixed;
    z-index: 9999;
    visibility: hidden;
    opacity: 0;

    padding: 8px 12px;
    min-width: 180px;
    max-width: 280px;

    background: var(--bg-primary, #1a1a2e);
    border: 1px solid var(--border-default, #333);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);

    font-size: 0.8rem;
    font-weight: 400;
    line-height: 1.4;
    color: var(--text-secondary, #a0a0a0);
    text-align: left;
    white-space: normal;

    transition: opacity 0.15s ease, visibility 0.15s ease, top 0.1s ease, left 0.1s ease;
    pointer-events: none;
}

/* Arrow for global tooltip */
.global-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: var(--border-default, #333);
}

/* Arrow for bottom placement */
.global-tooltip.bottom::after {
    top: auto;
    bottom: 100%;
    border-top-color: transparent;
    border-bottom-color: var(--border-default, #333);
}

/* Clean up old styles */
.tooltip-text,
.tooltip-text-hidden {
    display: none !important;
}