/**
 * Network Graph Styles
 */

.ws-record-network-container {
    position: relative;
    width: 100%;
    min-height: 600px;
    background-color: #f8f9fa;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

#network-graph {
    width: 100%;
    height: 600px;
    background: linear-gradient(to bottom, #ffffff, #f0f0f0);
}

#network-graph canvas {
    display: block;
}

/* Legend Styles */
.network-legend {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.95);
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    min-width: 150px;
}

.legend-item {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    font-size: 14px;
}

.legend-item:last-child {
    margin-bottom: 0;
}

.legend-color {
    display: inline-block;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    margin-right: 8px;
    flex-shrink: 0;
}

.legend-label {
    color: #333;
    font-weight: 500;
}

/* Loading State */
.ws-record-network-container.loading {
    display: flex;
    align-items: center;
    justify-content: center;
}

.ws-record-network-container.loading::before {
    content: 'Loading network visualization...';
    font-size: 16px;
    color: #666;
}

/* No Data State */
.ws-record-network-container .ws-no-data {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    font-size: 18px;
    color: #999;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .ws-record-network-container {
        min-height: 400px;
    }

    #network-graph {
        height: 400px;
    }

    .network-legend {
        top: 10px;
        right: 10px;
        padding: 10px;
        min-width: 120px;
    }

    .legend-item {
        font-size: 12px;
        margin-bottom: 6px;
    }

    .legend-color {
        width: 12px;
        height: 12px;
        margin-right: 6px;
    }
}

@media (max-width: 480px) {
    .ws-record-network-container {
        min-height: 300px;
    }

    #network-graph {
        height: 300px;
    }

    .network-legend {
        font-size: 11px;
    }
}

/* Node hover card modal */
.network-node-modal {
    position: fixed;
    z-index: 9999;
    pointer-events: none;
    width: 204px;
    height: 204px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
}

.network-node-modal .ws-record-content-list {
    margin: 0;
    border-radius: 8px;
	width:100%;
    height: 100%;
    box-sizing: border-box;
}

.network-node-modal .ws-record-content-list .ws-record-content {
    height: 100%;
    box-sizing: border-box;
}

.network-node-modal .ws-record-content-list .content-image {
    height: 100%;
	overflow:hidden;
	border-radius:4px;
    box-sizing: border-box;
}
