.node {
    cursor: pointer;
    transition: fill 0.2s ease, stroke 0.2s ease, opacity 0.2s ease;
}

.node:hover,
.node.table-hovered {
    stroke: lightblue;
    stroke-width: 2px;
}

.node.dimmed {
    opacity: 0.1;
}

.halo {
    fill: none;
    stroke-width: 4px;
    pointer-events: none;
}

.link {
    stroke: #999;
    stroke-opacity: 0.6;
    transition: opacity 0.2s ease, stroke 0.2s ease, stroke-width 0.2s ease;
}

.link.hovered {
    stroke: lightblue;
    stroke-width: 1.5;
    stroke-opacity: 0.8;
}

.link.hidden {
    opacity: 0;
}

.node-label {
    font-size: 10px;
    pointer-events: none;
    text-anchor: middle;
    dominant-baseline: middle;
    fill: #fff;
    transition: opacity 0.2s ease;
    stroke: #000;
    stroke-width: 0.5px;
    stroke-linejoin: round;
    paint-order: stroke fill;
}

.node-label.hidden {
    opacity: 0;
}

.tooltip {
    position: absolute;
    background-color: #1c1c1c;
    color: #e0e0e0;
    border: 1px solid #444;
    padding: 12px;
    border-radius: 8px;
    font-size: 13px;
    pointer-events: none;
    display: none;
    z-index: 20;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    transition: opacity 0.1s ease;
    min-width: 220px;
}

.tooltip .tooltip-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #fff;
}

.tooltip .tooltip-stat {
    display: flex;
    align-items: center;
    margin-bottom: 6px;
}

.tooltip .tooltip-stat:last-child {
    margin-bottom: 0;
}

.tooltip .tooltip-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    margin-right: 8px;
}

.tooltip .tooltip-icon img {
    height: 14px;
    width: auto;
}

.tooltip .tooltip-label {
    font-weight: bold;
    margin-right: 5px;
}

.tooltip .shared-tooltip-item {
    display: flex;
    align-items: center;
    margin-top: 5px;
}

.tooltip .shared-swatch {
    width: 10px;
    height: 10px;
    border-radius: 2px;
    margin-right: 8px;
    flex-shrink: 0;
}
