/* Custom Styles */
.pattern-bg {
    background-image: radial-gradient(#CBD5E0 1px, transparent 1px);
    background-size: 20px 20px;
}

.canvas-wrapper {
    cursor: crosshair;
    transition: transform 0.2s;
}

/* Tool Buttons */
.tool-btn {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    transition: all 0.2s;
    color: #4A5568;
}

.tool-btn:hover {
    background: #EDF2F7;
    transform: scale(1.05);
}

.tool-btn.active {
    background: #FBB6CE; /* Pink-200 */
    color: #D53F8C; /* Pink-600 */
    box-shadow: 0 2px 5px rgba(213, 63, 140, 0.2);
}

/* Color Swatches */
.color-swatch {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.1s, box-shadow 0.1s;
    border: 2px solid transparent;
}

.color-swatch:hover {
    transform: scale(1.1);
    z-index: 10;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.color-swatch.active {
    transform: scale(1.1);
    border-color: #4A5568;
    box-shadow: 0 0 0 2px white, 0 0 0 4px #4A5568;
    z-index: 10;
}

canvas {
    image-rendering: pixelated; /* Critical for pixel art look */
}
