#header {
    margin-top: 2vh;
}

@media (min-width: 540px) {
    #header-text {
        margin-left: 4vh;
    }
}

#main-div {
    margin-top: 4vh;
    padding: 3vh;
    background-color: #ffaaff;
}

/* D3 Force-directed Graph Styles */
#simulation-div {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 600px;
    padding: 20px;
}

#simulation-div svg {
    background-color: #f8f9fa;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.nodes circle {
    cursor: pointer;
    transition: all 0.2s ease;
}

.nodes circle:hover {
    stroke-width: 3px !important;
}

.node-label {
    font-family: "Arial", sans-serif;
    font-size: 10px;
    font-weight: bold;
    text-anchor: middle;
    pointer-events: none;
    user-select: none;
}

.legend {
    font-family: "Arial", sans-serif;
}

.legend-item text {
    font-size: 12px;
    fill: #333;
}

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

.legend-item:hover circle {
    stroke-width: 2px;
    r: 10;
}

/* Agent state specific styles */
.state-s {
    fill: #69b3a2;
}

.state-b {
    fill: #ff6b6b;
}

.state-f {
    fill: #4ecdc4;
}

/* Responsive design for the visualization */
@media (max-width: 768px) {
    #simulation-div {
        min-height: 400px;
        padding: 10px;
    }

    #simulation-div svg {
        max-width: 100%;
        height: auto;
    }
}
