/* ========================================
   IMAGE EDITOR MODAL STYLES
   ======================================== */

/* Canvas Container */
.image-editor-canvas-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg);
    position: relative;
    overflow: hidden;
    min-height: 300px;
    max-height: 450px;
    aspect-ratio: 1 / 1;
}

.image-editor-canvas-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    max-width: 450px;
    max-height: 450px;
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    touch-action: none;
}

#imageEditorCanvas {
    display: block;
    max-width: 100%;
    max-height: 100%;
    cursor: move;
    user-select: none;
    aspect-ratio: 1 / 1;
}

/* Circular Overlay Mask */
.image-editor-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.image-editor-circle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    max-width: 450px;
    max-height: 450px;
    border-radius: 50%;
    border: 2px solid #ffffff;
    box-shadow: 
        0 0 0 9999px rgba(0, 0, 0, 0.6),
        inset 0 0 0 2px rgba(0, 0, 0, 0.3);
}

/* Controls */
.image-editor-controls {
    padding: 24px 20px;
    background: var(--panel);
    border-top: 1px solid var(--borders);
}

.image-editor-control-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.image-editor-control-label {
    color: var(--muted);
    font-size: 18px;
    width: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-editor-slider {
    flex: 1;
    -webkit-appearance: none;
    appearance: none;
    height: 4px;
    background: var(--muted);
    border-radius: 2px;
    outline: none;
}

.image-editor-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background: var(--txt);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s;
}

.image-editor-slider::-webkit-slider-thumb:hover {
    transform: scale(1.1);
}

.image-editor-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: var(--txt);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s;
}

.image-editor-slider::-moz-range-thumb:hover {
    transform: scale(1.1);
}

/* Responsive */
@media (max-width: 600px) {
    .image-editor-controls {
        padding: 20px 16px;
    }
}