/* 
Legend Component Styles
-----------------------
Lightweight styling for the SNA visualization legend component.
*/

.network-legend {
    position: absolute;
    z-index: 1000;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
    font-size: 12px;
    user-select: none;
}

.network-legend.bottom-left {
    bottom: 10px;
    left: 10px;
}

.network-legend.bottom-right {
    bottom: 10px;
    right: 10px;
}

.network-legend.top-left {
    top: 10px;
    left: 10px;
}

.network-legend.top-right {
    top: 10px;
    right: 10px;
}

.legend-header {
    border-radius: 3px;
    transition: background-color 0.2s ease;
}

.legend-header:hover {
    background-color: rgba(255, 255, 255, 0.08) !important;
}

.legend-title {
    font-size: 14px !important;
    font-weight: 600 !important;
    margin: 0 !important;
}

#legend-toggle-icon {
    transition: transform 0.2s ease;
}

.legend-header:hover #legend-toggle-icon {
    color: #fff !important;
}

#legend-content {
    transition: opacity 0.2s ease;
}

.legend-item {
    transition: opacity 0.2s ease;
}

.legend-item:hover {
    opacity: 0.8;
}

@media (max-width: 768px) {
    .network-legend {
        font-size: 11px;
        max-width: 220px !important;
    }
    
    .legend-title {
        font-size: 13px !important;
    }
}
