/**
 * Tooltip Styles
 */

.metric-tooltip-trigger {
    background: transparent;
    border: none;
    color: var(--gh-text-secondary);
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    margin-left: 8px;
    transition: all 0.2s ease;
    opacity: 0.6;
}

.metric-tooltip-trigger:hover,
.metric-tooltip-trigger:focus {
    opacity: 1;
    color: var(--gh-text-primary);
    background: var(--gh-bg-tertiary);
    outline: none;
}

.metric-tooltip-trigger i {
    width: 14px;
    height: 14px;
}

.metric-tooltip {
    position: fixed;
    background: var(--gh-bg-secondary);
    border: 1px solid var(--gh-border);
    border-radius: 8px;
    padding: 12px 16px;
    max-width: 280px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 10000;
    opacity: 0;
    transform: translateY(-4px);
    transition: opacity 0.2s ease, transform 0.2s ease;
    pointer-events: none;
}

.metric-tooltip.active {
    opacity: 1;
    transform: translateY(0);
}

.metric-tooltip .tooltip-title {
    font-weight: var(--font-weight-semibold, 600);
    font-size: var(--font-size-subhead, 15px);
    color: var(--gh-text-primary);
    margin-bottom: 6px;
}

.metric-tooltip .tooltip-content {
    font-size: var(--font-size-footnote, 13px);
    color: var(--gh-text-secondary);
    line-height: var(--line-height-relaxed, 1.75);
}

/* Arrow pointing to trigger */
.metric-tooltip::before {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid var(--gh-bg-secondary);
}

.metric-tooltip::after {
    content: '';
    position: absolute;
    bottom: -7px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 7px solid transparent;
    border-right: 7px solid transparent;
    border-top: 7px solid var(--gh-border);
}










