
main {
    width: 1000px;
}

/* Checkered Background for Transparency Visual */
.canvas-wrapper {
    position: relative;
    display: inline-block;
    max-width: 100%;
    background-image: linear-gradient(45deg, #ddd 25%, transparent 25%),
                      linear-gradient(-45deg, #ddd 25%, transparent 25%),
                      linear-gradient(45deg, transparent 75%, #ddd 75%),
                      linear-gradient(-45deg, transparent 75%, #ddd 75%);
    background-size: 20px 20px;
    background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
    background-color: #fcfcfc;
    border: 2px dashed #aaa;
    border-radius: 8px;
    padding: 10px;
    box-sizing: border-box;
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* Presets Container Styling */
.presets-container {
    width: 100%;
    margin-bottom: 25px;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 15px;
    background-color: #f8f9fa;
    padding: 12px 18px;
    border-radius: 6px;
    border: 1px solid #e9ecef;
    box-sizing: border-box;
}

.preset-label {
    font-weight: 600;
    font-size: 14px;
    color: #495057;
    white-space: nowrap;
}

.preset-colors {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.preset-btn {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid #ced4da;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.preset-btn:hover {
    transform: scale(1.15);
    border-color: #4a90e2;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.preset-btn.active {
    border-color: #0d47a1;
    transform: scale(1.1);
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.3);
}

/* Color Picker Dropper Button */
.picker-btn {
    background-color: #f8f9fa;
    color: #495057;
    border: 1px solid #ced4da;
    border-radius: 4px;
    padding: 8px 12px;
    font-weight: 500;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 40px;
    box-sizing: border-box;
}

.picker-btn:hover {
    background-color: #e9ecef;
    border-color: #adb5bd;
}

.picker-btn.active {
    background-color: #e3f2fd;
    color: #0d47a1;
    border-color: #4a90e2;
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.2);
}

/* Interactive Canvas Crosshair cursor */
#imageCanvas.crosshair-cursor {
    cursor: crosshair !important;
}

/* General Layout Fixes */
.controls-container {
    margin-bottom: 20px;
}
