:root {
    --bg: #1a1a1a;
    --node-bg: #2d2d2d;
    --node-header: #404040;
    --text: #e0e0e0;
    --accent: #00d2ff;
    --accent-hover: #33ddff;
    --input: #ff4d4d;
    --output: #4dff88;
}


body {
    margin: 0;
    padding: 0;
    background-color: var(--bg);
    color: var(--text);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    overflow: hidden;
    user-select: none;
}

#toolbar {
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    display: flex;
    gap: 10px;
    align-items: flex-start;
    z-index: 10;
    pointer-events: none;
}

.node-group {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
    pointer-events: auto;
    flex: 1 1 auto;
}

.action-group {
    display: flex;
    gap: 6px;
    align-items: center;
    pointer-events: auto;
    flex: 0 0 auto;
    white-space: nowrap;
}

.toolbar-separator {
    width: 1px;
    height: 20px;
    background: #555;
    margin: 0 4px;
    pointer-events: none;
}

button,
.file-btn,
select {
    pointer-events: auto;
    background: var(--node-bg);
    border: 1px solid #555;
    color: var(--text);
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.2s;
    font-weight: bold;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    text-decoration: none;
    display: inline-block;
}

button:hover,
.file-btn:hover,
select:hover {
    background: var(--node-header);
    border-color: var(--accent);
}

button.primary {
    background: var(--accent);
    color: #000;
    border: none;
}

button.primary:hover {
    background: var(--accent-hover);
}

select {
    width: 120px;
    outline: none;
}

#canvas-container {
    width: 100vw;
    height: 100vh;
    position: relative;
}

canvas {
    display: block;
}

#overlay {
    position: absolute;
    bottom: 20px;
    left: 20px;
    pointer-events: none;
    color: #666;
    font-size: 12px;
    text-shadow: 0 1px 2px #000;
}

/* Custom file input hidden */
#file-input {
    display: none;
}
