/* Graph Container */
#graph-container {
    width: 100%;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #f9f9f9;
    margin: 20px 0;
}

/* SVG Elements */
.graph-svg {
    cursor: grab;
}

.graph-svg:active {
    cursor: grabbing;
}

/* Nodes */
.graph-node {
    cursor: pointer;
    transition: all 0.2s ease;
}

.graph-node:hover {
    stroke-width: 3;
    filter: drop-shadow(0 0 8px rgba(0,0,0,0.2));
}

/* Links */
.graph-link {
    stroke-linecap: round;
}

/* Labels */
.graph-label {
    pointer-events: none;
    user-select: none;
    font-weight: 500;
}

/* Controls */
.graph-controls {
    margin: 15px 0;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.graph-controls button {
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background: white;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
}

.graph-controls button:hover {
    background: #f0f0f0;
    border-color: #999;
}

.graph-controls button.active {
    background: #1f77b4;
    color: white;
    border-color: #1f77b4;
}

/* Search */
#graph-search {
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    width: 200px;
}

/* Error message */
.error {
    color: #d32f2f;
    padding: 20px;
    text-align: center;
}

nav {
    margin: 0 auto 0 auto;
}
hr {
    z-index: -10;
}

.expertise-loading {
    position: relative;
    transition: box-shadow 0.25s ease, background-color 0.25s ease;
    box-shadow: 0 0 0 2px rgba(4, 15, 217, 0.18);
}

.expertise-loading::after {
    content: 'Loading expertise...';
    position: absolute;
    top: 8px;
    right: 12px;
    font-size: 12px;
    font-weight: 600;
    color: #021E73;
    background: rgba(255, 255, 255, 0.92);
    padding: 4px 8px;
    border-radius: 12px;
    pointer-events: none;
    z-index: 5;
}

.expertise-updated {
    animation: expertiseUpdatedPulse 1.2s ease;
}

@keyframes expertiseUpdatedPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(4, 15, 217, 0.28);
        background-color: rgba(4, 15, 217, 0.04);
    }
    100% {
        box-shadow: 0 0 0 12px rgba(4, 15, 217, 0);
        background-color: transparent;
    }
}

.menu-item {
    background:#FFF;
    min-width:190px;
    transition: background 0.7s, color 0.7s, transform 0.7s;
    margin:0px 0px 0px 0px;
    padding:4px 20px;
    box-sizing:border-box;
    position:relative;
    text-decoration: none;
    color: #070707;
}