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

#toolbar {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(255, 255, 255, 0.9);
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    gap: 10px;
    align-items: center;
    z-index: 100;
}

h1 {
    font-size: 1rem;
    margin: 0;
}

.color-picker {
    display: flex;
    gap: 5px;
}

.color-btn {
    width: 20px;
    height: 20px;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    border: 1px solid #ccc;
}

.color-btn:hover {
    transform: scale(1.1);
}

#canvas {
    display: block;
    background: #f0f0f0;
    cursor: crosshair;
    touch-action: none;
    /* Improvements for mobile */
}