html,
body {
    background-color: #222;
    margin: 0;
    padding: 0;
    height: 100%;
    overflow: hidden;
    font-family: sans-serif;
}

#container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    width: 100vw;
    gap: 0;
}

/* Left + Right Panels */
#sidebar{
    width: 200px;
    height: 100vh;
    background-color: #222;
    color: white;
    padding: 1em;
    box-sizing: border-box;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    border-right: 1px solid #444;
}

#info-panel {
    width: 200px;
    height: 100vh;
    background-color: #222;
    color: white;
    padding: 1em;
    box-sizing: border-box;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    border-left: 1px solid #444;
}

#sim-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-grow: 1;
    height: 100vh;
    overflow: hidden;
    position: relative;
}

/* Canvas fills space between sidebars */
#sim-canvas {
    background-color: #111;
    aspect-ratio: 1 / 1;
    /* force square layout */
    object-fit: contain;
    max-height: 100%;
    max-width: 100%;
}

/* Stats panel styling */
#info-panel h2 {
    margin-top: 0;
    color: #0ff;
}

#stats p {
    margin: 0.5em 0;
}

#stats span {
    color: #0f0;
}

/* Sidebar controls */
#sidebar label {
    margin-top: 0.8em;
    margin-bottom: 0.2em;
    font-size: 0.9em;
    font-weight: bold;
}

#sidebar input[type="number"] {
    width: 100%;
    padding: 5px;
    background-color: #333;
    border: 1px solid #555;
    color: #fff;
    font-size: 0.9em;
    border-radius: 4px;
    box-sizing: border-box;
}

#sidebar button {
    margin-top: 1em;
    padding: 8px;
    background-color: #0f0;
    color: #000;
    font-weight: bold;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

#sidebar button:hover {
    background-color: #0c0;
}


#nn-graph {
    display: none;
    position: fixed;
    top: 100px;
    left: 100px;
    width: 600px;
    height: 500px;
    background-color: #111;
    border: 1px solid #444;
    border-radius: 6px;
    resize: both;
    overflow: hidden;
    z-index: 9999;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.8);
}

#nn-header {
    background-color: #222;
    color: white;
    padding: 8px 12px;
    cursor: move;
    user-select: none;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #333;
}

#nn-close {
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    padding: 0;
    margin-left: 12px;
}

#cy-container{
    width: 100%;
    height: calc(100% - 40px);
    /* Account for header */ 
}

#nn-text {
    display: none;
    color: #ccc;
    padding: 12px;
    overflow: auto;
    height: calc(100% - 40px);
    white-space: pre-wrap;
    font-family: monospace;
}

.nn-toggle-btn {
    position: absolute;
    top: 10px;
    color: white;
    right: 45px;
    z-index: 10000;
    background: transparent;
    border: none;
    font-size: 20px;
    cursor: pointer;
    padding: 4px;
}

.nn-toggle-btn:hover {
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}

.param-field {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.75rem;
    font-size: 1rem;
    color: white;
}

.param-field label {
    flex: 1;
}

.checkbox-field {
    transform: scale(1.2);
    cursor: pointer; 
}

#zoneTemplates {
    display: flex;
    flex-direction: column;
    align-items: start;
    gap: 0.25rem;
    margin-top: 1rem;
    color: white;     
}