.annotation-titlebar {
    display: flex;
    gap: 10px;
}

.action-buttons {
    display: flex;
    gap: 8px;
    margin: 8px 0;
}

.filter-btn, .pin-btn {
    padding: 4px 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background-color: #f5f5f5;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.2s ease;
}

.filter-btn:hover, .pin-btn:hover {
    background-color: #e0e0e0;
}

.filter-btn:active, .pin-btn:active {
    background-color: #d0d0d0;
}

.annotation-buttons {
    display: flex;
    gap: 8px;
    align-items: center;
}

.annotation-buttons .icon {
    cursor: pointer;
    fill: #cacaca;
    transition: all 0.2s ease;
    opacity: 0.7;
}

.annotation-buttons .icon:hover {
    opacity: 1;
    fill: #333;
}

.annotation-buttons .icon.pinned {
    fill: #2196F3;
    opacity: 1;
}

.selected-annotation {
    z-index: 1000;
}

.selected-annotation .annotation-label {
    font-weight: bold;
}

.legend_expansion {
    position: relative;
}

.clear-selection {
    position: absolute;
    top: 20px;
    right: 11px;
    padding: 2px 6px;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    color: #fff;
    font-size: 12px;
    cursor: pointer;
    opacity: 0;
    transition: all 0.2s ease;
}

.clear-selection:hover {
    background-color: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
}

.clear-selection.visible {
    opacity: 1;
}

.legend_item {
    display: flex;
    align-items: center;
    padding: 5px;
    margin: 2px 0;
    cursor: pointer;
    transition: all 0.2s ease;
}

.legend_item.intersectable {
    cursor: pointer;
}

.legend_item.highlight {
    background-color: rgba(255, 255, 0, 0.1);
}

.legend_item.hover {
    background-color: rgba(255, 255, 0, 0.2);
}

.intersect-icon {
    margin-left: 10px;
    cursor: pointer;
    fill: #666;
    transition: fill 0.2s ease;
}

.intersect-icon:hover {
    fill: #333;
}

.intersect-prompt {
    margin-left: 10px;
    color: #666;
    font-style: italic;
}

.link {
    margin-left: 10px;
    color: #666;
    cursor: pointer;
    transition: color 0.2s ease;
}

.link:hover {
    color: #333;
} 