/* Network graph styles */
.network-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
    background-color: #343a40;
}

.network-background svg {
    width: 100%;
    height: 100%;
    display: block;  /* Removes any default spacing */
}

/* Make sure parent is positioned */
.page-header.relative {
    position: relative;
}

/* Rest of your network styles... */
.link {
    stroke: #999;
    stroke-opacity: 0.6;
}

.node {
    cursor: pointer;
    transition: opacity 0.3s;
}

.node.highlighted {
    /*stroke: #ff6b6b;*/
    stroke: #999;
    stroke-width: 4px;
    filter: drop-shadow(0 0 8px #999);
}

.node:not(.highlighted) {
    opacity: 0.3;
}

svg:not(:has(.highlighted)) .node {
    opacity: 1;
}

#loading-overlay-network {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(248, 249, 250, 0.95);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    transition: opacity 0.3s ease-out;
}

#loading-overlay-network.fade-out {
    opacity: 0;
    pointer-events: none;
}

/* Tooltip styles */
.tooltip {
    position: absolute;
    padding: 10px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    border-radius: 5px;
    pointer-events: none;
    font-size: 14px;
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 1000;
}

.tooltip.show {
    opacity: 1;
}