body {
    font-family: sans-serif;
}
body {
    margin: 0;
    overflow: hidden;
}
.graph-container {
    position: absolute;
    top: 3.5rem; /* navbar height */
    left: 0;
    right: 0;
    bottom: 0;
}

/* Update the sigma-container to fill its parent */
#sigma-container {
    position: relative;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

#controls {
    position: absolute;
    left: 1em;
    top: 1em;
    text-align: left;
    pointer-events: none;
}

#controls button,
#controls input,
#controls .btn,
#controls .controls-box,
#controls .controls-box * {
    pointer-events: auto;
}

.controls-box {
    position: relative;
    display: inline-block;
    vertical-align: middle;
}

#bottom-buttons {
    position: absolute;
    left: 1em;
    bottom: 1em;
}

.btn {
    background: #f5f7fa;
    /*color: #2355d8;*/
    border: 1px solid #dbeafe;
    border-radius: 6px;
    padding: 6px 10px;
    font-weight: 500;
    box-shadow: 0 1px 4px rgba(35, 85, 216, 0.08);
    transition:
        background 0.2s,
        color 0.2s;
}
.btn:hover {
    background: #e0e7ff;
    color: #1e3a8a;
}

#search-input[type="search"] {
    padding: 10px 14px;
    border: 1px solid #dbeafe;
    border-radius: 6px;
    font-size: 1rem;
    font-family: inherit;
    background: #f5f7fa;
    box-shadow: 0 1px 4px rgba(35, 85, 216, 0.08);
    transition:
        border-color 0.2s,
        box-shadow 0.2s;
    outline: none;
}
#search-input[type="search"]:focus {
    border-color: #4f8cff;
    box-shadow: 0 2px 8px rgba(79, 140, 255, 0.15);
    background: #fff;
}

.section-label {
    display: inline-block;
    font-size: 0.95em;
    background: #f5f7fa;
    padding: 3px 14px;
    border-radius: 999px;
    font-weight: 500;
    margin-bottom: 0.5em;
}

.loading-overlay {
    position: absolute;
    left: 50%;
    top: 40%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 40em;
}
.loading-overlay.hidden {
    display: none;
}
#controls input[type="range"] {
    width: 8em;
    vertical-align: middle;
    accent-color: #4f8cff;
}
#controls .controls-box {
    display: flex;
    align-items: center;
    gap: 0.5em;
    padding: 0.4em;
    background: #fff;
    border-radius: 8px;
}
#controls .controls-box > * {
    flex: none;
}
#controls #search-input {
    width: 14em;
}
#controls input[type="range"] {
    width: 6em;
}
