/* Base styles */
body {
    margin: 0;
    font-family: 'Segoe UI', sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #1e1e1e;
    color: #fff;
    height: 100vh;
}

.dark-theme {
    background: #1e1e1e;
    color: #fff;
}

.light-theme {
    background: #f0f0f0;
    color: #000;
}

.toolbar {
    margin: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.toolbar button,
.toolbar input[type="number"] {
    padding: 8px 12px;
    border: none;
    border-radius: 8px;
    background: #333;
    color: #fff;
    cursor: pointer;
    transition: 0.2s;
    font-size: 14px;
}

.toolbar button:hover,
.toolbar input[type="number"]:hover {
    background: #555;
}

.light-theme .toolbar button,
.light-theme .toolbar input[type="number"] {
    background: #fff;
    color: #000;
}

.light-theme .toolbar button:hover,
.light-theme .toolbar input[type="number"]:hover {
    background: #ddd;
}

/* Color picker larger & obvious */
#colorPicker {
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    padding: 0;
}

/* Canvas container */
.canvas-container {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100vw;
    height: 100%;
    padding: 10px;
    box-sizing: border-box;
}

canvas {
    border: 2px solid #555;
    border-radius: 12px;
    display: block;
    max-width: 100%;
    max-height: 100%;
}
