/* Network breadcrumb */
.network-breadcrumb {
    padding: 10px 15px;
    background: #f8f9fa;
    border-bottom: 1px solid #e0e0e0;
    border-radius: 8px 8px 0 0;
    font-size: 14px;
}

.breadcrumb-item {
    color: #667eea;
    text-decoration: none;
    cursor: pointer;
    transition: color 0.2s ease;
}

.breadcrumb-item:hover {
    color: #5a67d8;
    text-decoration: underline;
}

.breadcrumb-separator {
    color: #999;
    margin: 0 10px;
}

/* Network container specific styles */
#network {
    position: relative;
    width: 100%;
    height: 100%;
    background: #fafafa;
    min-height: calc(100vh - 180px);
}

/* Ensure network container fills available space */
#networkContainer {
    position: relative;
}

/* World map should also fill space */
#worldMap {
    min-height: calc(100vh - 180px);
}

/* Network loading state */
.network-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

/* Network error state */
.network-error {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #dc2626;
}
/* Network Container */
#network {
    width: 100%;
    height: 100%;
    border-radius: 10px;
    position: relative;
    background: #fafafa;
}

/* Network Breadcrumb */
.network-breadcrumb {
    padding: 10px 15px;
    background: #f8f9fa;
    border-bottom: 1px solid #e0e0e0;
    border-radius: 8px 8px 0 0;
    font-size: 14px;
    margin-bottom: 10px;
}

.breadcrumb-item {
    color: #667eea;
    text-decoration: none;
    cursor: pointer;
    transition: color 0.2s ease;
}

.breadcrumb-item:hover {
    color: #5a67d8;
    text-decoration: underline;
}

.breadcrumb-separator {
    color: #999;
    margin: 0 10px;
}

/* Network Loading State */
.network-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

/* Network Error State */
.network-error {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #dc2626;
}

/* Network Tooltip */
.vis-tooltip {
    position: absolute;
    visibility: hidden;
    padding: 10px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    border-radius: 8px;
    font-size: 12px;
    max-width: 200px;
    pointer-events: none;
    z-index: 1000;
}

/* Network Controls (if needed) */
.network-controls {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    gap: 10px;
    z-index: 100;
}

.network-control-btn {
    padding: 8px 12px;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.2s ease;
}

.network-control-btn:hover {
    background: #f5f5f5;
    border-color: #667eea;
}

/* Network Export Button */
.network-export {
    position: absolute;
    bottom: 10px;
    right: 10px;
    padding: 8px 16px;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.network-export:hover {
    background: #5a67d8;
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(102, 126, 234, 0.3);
}

/* Adjust network container height */
.network-view #network {
    height: calc(100% - 50px);
}

/* Network Legend (optional) */
.network-legend {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: white;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    font-size: 12px;
}

.network-legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 5px;
}

.network-legend-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid;
}

/* Network Node Highlights */
.network-node-highlight {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(102, 126, 234, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(102, 126, 234, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(102, 126, 234, 0);
    }
}

/* World Map Enhanced Styles */
#worldMap {
    width: 100%;
    height: 100%;
    border-radius: 10px;
    overflow: hidden;
}

/* Custom Map Marker Hover Effects */
.custom-map-marker > div {
    transition: all 0.3s ease;
    cursor: pointer;
}

.custom-map-marker:hover > div {
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(0,0,0,0.4);
}

/* Leaflet Popup Customization */
.custom-leaflet-popup .leaflet-popup-content-wrapper {
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.custom-leaflet-popup .leaflet-popup-content {
    margin: 15px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.custom-leaflet-popup .leaflet-popup-tip {
    background: white;
}

/* Map Controls */
.leaflet-control-container .leaflet-top {
    top: 60px; /* Below the view toggle buttons */
}

/* Critical Asset Indicator Animation */
@keyframes criticalPulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
    }
}

.custom-map-marker span[style*="background: #dc2626"] {
    animation: criticalPulse 2s ease-in-out infinite;
}

/* Map Legend */
.map-legend {
    position: absolute;
    bottom: 30px;
    right: 10px;
    background: white;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    font-size: 12px;
    z-index: 1000;
}

.map-legend h4 {
    margin: 0 0 10px 0;
    font-size: 14px;
    color: #333;
}

.map-legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 5px;
}

.map-legend-dot {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid white;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

/* Map Info Panel */
.map-info-panel {
    position: absolute;
    top: 120px;
    left: 10px;
    background: white;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    min-width: 200px;
    z-index: 1000;
}

.map-info-panel h4 {
    margin: 0 0 10px 0;
    font-size: 16px;
    color: #333;
    border-bottom: 2px solid #667eea;
    padding-bottom: 5px;
}

.map-info-stat {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
    font-size: 14px;
}

.map-info-stat strong {
    color: #667eea;
}