body {
    margin: 0;
    padding: 0;
    background-color: #121212;
    color: #ffffff;
    font-family: 'Inter', -apple-system, sans-serif;
    overflow: hidden;
}

#ui-container {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 10;
    background: rgba(30,30,30,0.85);
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
    backdrop-filter: blur(10px);
    width: 350px;
}

h1 {
    font-size: 1.5rem;
    margin-top: 0;
    margin-bottom: 10px;
}

h2 {
    font-size: 1.1rem;
    margin-top: 20px;
    border-bottom: 1px solid #444;
    padding-bottom: 5px;
}

p {
    font-size: 0.9rem;
    color: #ccc;
    line-height: 1.4;
}

button {
    background: linear-gradient(135deg, #6e8efb, #a777e3);
    border: none;
    border-radius: 6px;
    color: white;
    padding: 10px 20px;
    font-size: 1rem;
    cursor: pointer;
    font-weight: bold;
    width: 100%;
    margin-top: 10px;
    transition: transform 0.1s;
}

button:active {
    transform: scale(0.98);
}

button:disabled {
    opacity: 0.5;
    cursor: default;
}

#network-graph {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
}

.controls {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
}

.controls label {
    display: flex;
    flex-direction: column;
    font-size: 0.85rem;
    color: #ddd;
}

input[type="range"] {
    margin-top: 5px;
}

.node {
    stroke: #333;
    stroke-width: 1.5px;
    transition: fill 0.1s, r 0.1s;
}
.node text {
    fill: #fff;
    font-family: sans-serif;
    pointer-events: none;
    font-size: 10px;
}

.link {
    stroke-opacity: 0.6;
}
