body {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: #fafafa;
}

header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    background: #2d3748;
    color: white;
}

header h1 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
}

header a {
    color: #a0aec0;
    text-decoration: none;
    font-size: 0.9rem;
}

header a:hover {
    color: white;
}
.container {
    display: flex;
    gap: 20px;
    padding: 20px;
}
.left-column {
    flex: 1;
    min-width: 0;
}
.right-column {
    flex: 1;
    min-width: 300px;
    display: flex;
    flex-direction: column;
}
#canvas-container {
    width: 100%;
    aspect-ratio: 2 / 1;
    border: 2px solid #2d3748;
    border-radius: 4px;
    background: #1a1a2e;
    box-sizing: border-box;
}
#editor {
    width: 100%;
    height: 25em;
    box-sizing: border-box;
    font-family: "SF Mono", Monaco, Consolas, monospace;
    font-size: 13px;
    border: 1px solid #ccc;
    border-radius: 4px;
}
.controls {
    margin: 10px 0;
}
.controls button, .controls input, .controls select {
    margin-right: 5px;
    padding: 6px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 13px;
    background: white;
}

.controls button {
    cursor: pointer;
    background: #edf2f7;
}

.controls button:hover:not(:disabled) {
    background: #e2e8f0;
}

.controls button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.controls label {
    font-size: 13px;
    font-weight: 500;
    margin-right: 4px;
}
#state-vars {
    margin: 10px 0;
    padding: 10px;
    background: #edf2f7;
    font-family: "SF Mono", Monaco, Consolas, monospace;
    font-size: 13px;
    border-radius: 4px;
}
#output {
    max-height: 300px;
    overflow-y: auto;
    background: white;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 13px;
}
#keys-display {
    margin-top: 10px;
    padding: 8px 10px;
    background: #edf2f7;
    font-family: "SF Mono", Monaco, Consolas, monospace;
    font-size: 12px;
    border-radius: 4px;
}

