/**
 * Generator Postingan Media Sosial - Production Complete CSS
 * Version: 6.2.7 - Professional & Functional
 * Author: atwateriuda
 * Date: 2025-08-03
 * 
 * Complete CSS: Clean design + Working drag + Professional forms + 99% crop accuracy
 */

/* === RESET & BASE STYLES === */
* {
    font-family: 'Inter', sans-serif !important;
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #1f2937;
    background-color: #f9fafb;
    overflow-x: hidden;
    font-feature-settings: 'liga' 1, 'kern' 1;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.font-inter {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* === PROFESSIONAL FORM CARDS === */
.form-card {
    background: white;
    border-radius: 12px;
    padding: 24px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    margin-bottom: 24px;
    transition: all 0.2s ease;
    animation: formFadeIn 0.3s ease-out;
}

.form-card:hover {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* === SECTION HEADERS === */
.section-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f3f4f6;
}

.section-icon {
    width: 32px;
    height: 32px;
    background: #3b82f6;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    flex-shrink: 0;
    box-shadow: 0 2px 4px rgba(59, 130, 246, 0.2);
}

.section-icon.bg-success {
    background: #10b981;
    box-shadow: 0 2px 4px rgba(16, 185, 129, 0.2);
}

.section-icon.bg-warning {
    background: #f59e0b;
    box-shadow: 0 2px 4px rgba(245, 158, 11, 0.2);
}

.section-icon.bg-danger {
    background: #ef4444;
    box-shadow: 0 2px 4px rgba(239, 68, 68, 0.2);
}

.section-title {
    font-size: 18px;
    font-weight: 700;
    color: #1f2937;
    margin: 0;
    font-family: 'Inter', sans-serif;
}

/* === PROFESSIONAL FORM ELEMENTS === */

/* Form Groups */
.form-group {
    margin-bottom: 20px;
}

.form-group:last-child {
    margin-bottom: 0;
}

/* Labels */
.form-label, label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 14px;
    color: #374151;
    font-family: 'Inter', sans-serif;
}

/* Select Dropdown - Professional */
select, select#ratio {
    width: 100%;
    padding: 14px 16px !important;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px !important;
    font-weight: 500;
    background: white;
    color: #374151;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    transition: all 0.2s ease;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    padding-right: 44px;
}

select:focus, select#ratio:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    background-color: #fefefe;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233b82f6' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
    transform: translateY(-1px);
}

select:hover, select#ratio:hover {
    border-color: #9ca3af;
    background-color: #fafafa;
}

select option {
    padding: 12px;
    font-weight: 500;
    color: #374151;
    background: white;
}

/* Text Inputs & Textarea - Professional */
input[type="text"], 
input[type="email"], 
textarea,
input#sumber,
textarea#judul {
    width: 100%;
    padding: 14px 16px !important;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px !important;
    font-weight: 400;
    line-height: 1.5 !important;
    color: #374151;
    background: white;
    font-family: 'Inter', sans-serif;
    transition: all 0.2s ease;
    resize: none;
}

textarea#judul {
    min-height: 84px !important;
    max-height: 120px !important;
    resize: vertical;
}

input[type="text"]:focus, 
input[type="email"]:focus, 
textarea:focus,
input#sumber:focus,
textarea#judul:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    background-color: #fefefe;
    transform: translateY(-1px);
}

input[type="text"]:hover, 
input[type="email"]:hover, 
textarea:hover,
input#sumber:hover,
textarea#judul:hover {
    border-color: #9ca3af;
    background-color: #fafafa;
}

/* Professional Placeholder Styling */
input::placeholder,
textarea::placeholder,
input#sumber::placeholder,
textarea#judul::placeholder {
    color: #9ca3af;
    font-weight: 400;
    opacity: 1;
    font-style: normal;
}

input::-webkit-input-placeholder,
textarea::-webkit-input-placeholder {
    color: #9ca3af;
    font-weight: 400;
    opacity: 1;
}

input::-moz-placeholder,
textarea::-moz-placeholder {
    color: #9ca3af;
    font-weight: 400;
    opacity: 1;
}

input:-ms-input-placeholder,
textarea:-ms-input-placeholder {
    color: #9ca3af;
    font-weight: 400;
    opacity: 1;
}

/* === FONT SIZE CONTROL === */
.font-size-control {
    margin-top: 20px;
}

.font-size-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.font-size-value {
    display: inline-block;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    color: #1e40af;
    font-weight: 600;
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 6px;
    border: 1px solid #bfdbfe;
    min-width: 45px;
    text-align: center;
}

/* === PROFESSIONAL RANGE SLIDER === */
input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 8px;
    border-radius: 4px;
    background: #e5e7eb;
    outline: none;
    transition: background 0.3s ease;
    cursor: pointer;
    margin: 8px 0;
    pointer-events: auto !important;
    touch-action: none;
}

input[type="range"]:hover {
    background: #d1d5db;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
    transition: all 0.2s ease;
    border: 3px solid white;
    pointer-events: auto !important;
}

input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(59, 130, 246, 0.4);
}

input[type="range"]::-webkit-slider-thumb:active {
    cursor: grabbing !important;
}

input[type="range"]::-moz-range-thumb {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    cursor: pointer;
    border: 3px solid white;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
    transition: all 0.2s ease;
    pointer-events: auto !important;
}

input[type="range"]::-moz-range-thumb:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(59, 130, 246, 0.4);
}

/* Range Labels */
.range-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 4px;
    padding: 0 2px;
}

.range-labels span {
    font-size: 11px;
    color: #9ca3af;
    font-weight: 500;
}

/* Form Help Text */
.form-help {
    font-size: 12px;
    color: #6b7280;
    margin-top: 4px;
    line-height: 1.4;
}

/* === CANVAS CONTAINERS === */
#canvas-container, #overlay-container {
    position: relative;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    background: #ffffff;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
    min-height: 200px;
}

/* === FABRIC.JS CANVAS ELEMENTS === */
#mainCanvas, #overlayCanvas {
    font-family: 'Inter', sans-serif !important;
    display: block !important;
    width: 100% !important;
    height: auto !important;
    border: none;
    border-radius: 10px;
    opacity: 1 !important;
    visibility: visible !important;
    position: relative !important;
    z-index: 1 !important;
    background: transparent !important;
    pointer-events: auto !important;
    touch-action: manipulation !important;
}

#mainCanvas {
    background: #000000 !important;
}

#overlayCanvas {
    background: #ffffff !important;
}

/* === FABRIC.JS WRAPPERS === */
.canvas-container {
    font-family: 'Inter', sans-serif !important;
    position: relative !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    visibility: visible !important;
    background: transparent !important;
    pointer-events: auto !important;
}

.lower-canvas {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    background: transparent !important;
    pointer-events: auto !important;
    z-index: 1 !important;
}

/* CRITICAL FIX: Enable drag interaction for main canvas */
.upper-canvas {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    background: transparent !important;
    pointer-events: auto !important;
    z-index: 2 !important; /* FIXED: Enable drag interaction */
}

/* === CANVAS PLACEHOLDERS === */
.canvas-placeholder, .overlay-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f9fafb;
    border: 2px dashed #d1d5db;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 5;
    color: #6b7280;
    pointer-events: auto;
}

.canvas-placeholder:hover, .overlay-placeholder:hover {
    background: #f3f4f6;
    border-color: #3b82f6;
    transform: scale(1.01);
}

.canvas-placeholder.hidden, 
.overlay-placeholder.hidden {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
}

/* === CROP CIRCLE - PRODUCTION OPTIMIZED (99% ACCURACY) === */
#working-crop-circle {
    position: absolute !important;
    width: 94px !important;
    height: 94px !important;
    border: 3px solid #f97316 !important;
    border-radius: 50% !important;
    cursor: move !important;
    z-index: 999999 !important;
    display: block !important;
    pointer-events: auto !important;
    background: rgba(249, 115, 22, 0.03) !important;
    box-shadow: 
        0 0 0 2px rgba(255, 255, 255, 0.95), 
        0 0 0 99999px rgba(0, 0, 0, 0.4) !important;
    transition: all 0.15s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
    will-change: transform !important;
    contain: layout !important;
    margin: 0 !important;
    padding: 0 !important;
    opacity: 1 !important;
    visibility: visible !important;
}

#working-crop-circle:hover {
    border-color: #ea580c !important;
    border-width: 4px !important;
    transform: scale(1.03) !important;
    box-shadow: 
        0 0 0 2px rgba(255, 255, 255, 0.95),
        0 0 0 99999px rgba(0, 0, 0, 0.5) !important;
}

#working-crop-circle:active {
    border-color: #ea580c !important;
    border-width: 4px !important;
    transform: scale(1.05) !important;
}

#working-crop-circle::after {
    content: '';
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    width: 4px !important;
    height: 4px !important;
    background: #f97316 !important;
    border-radius: 50% !important;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.9) !important;
    pointer-events: none !important;
    z-index: 1000000 !important;
}

/* === BUTTONS - CLEAN SOLID DESIGN === */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.625rem 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
    outline: none;
    border: none;
    cursor: pointer;
    text-decoration: none;
    font-family: inherit;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn:active {
    transform: translateY(0);
}

.btn-primary {
    background-color: #3b82f6;
    color: white;
    border: 1px solid #3b82f6;
}

.btn-primary:hover {
    background-color: #2563eb;
    border-color: #2563eb;
}

.btn-secondary {
    background-color: white;
    color: #374151;
    border: 1px solid #d1d5db;
}

.btn-secondary:hover {
    background-color: #f9fafb;
    border-color: #9ca3af;
}

.btn-download {
    background-color: #10b981;
    color: white;
    border: 1px solid #10b981;
    padding: 1rem 2rem;
    font-size: 1.125rem;
    font-weight: 700;
}

.btn-download:hover {
    background-color: #059669;
    border-color: #059669;
}

.btn-warning {
    background-color: #f59e0b;
    color: white;
    border: 1px solid #f59e0b;
}

.btn-warning:hover {
    background-color: #d97706;
    border-color: #d97706;
}

.btn-danger {
    background-color: #ef4444;
    color: white;
    border: 1px solid #ef4444;
}

.btn-danger:hover {
    background-color: #dc2626;
    border-color: #dc2626;
}

/* Specific Button IDs */
#generateBtn, #changeImageBtn, #changeOverlayBtn, #removeOverlayBtn {
    width: 100%;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
}

#generateBtn:disabled {
    background-color: #9ca3af;
    border-color: #9ca3af;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
    opacity: 0.6;
}

/* === ZOOM CONTROLS === */
#zoom-controls-card, #position-controls-card {
    display: none;
}

#zoom-in-btn, #zoom-out-btn, #zoom-reset-btn {
    background: #f9fafb;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    padding: 8px 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    font-family: inherit;
    pointer-events: auto;
}

#zoom-in-btn:hover, #zoom-out-btn:hover, #zoom-reset-btn:hover {
    background: #f3f4f6;
    border-color: #3b82f6;
}

#zoom-reset-btn {
    background: #3b82f6;
    color: white;
    border-color: #3b82f6;
}

#zoom-reset-btn:hover {
    background: #2563eb;
    border-color: #2563eb;
}

/* === LOADING OVERLAY === */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.loading-overlay.show {
    opacity: 1;
    visibility: visible;
}

.loading-content {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    max-width: 20rem;
    margin: 1rem;
}

.loading-content p {
    color: #374151;
    font-size: 16px;
    margin-top: 16px;
    font-weight: 500;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #e5e7eb;
    border-top: 4px solid #3b82f6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* === TOAST NOTIFICATIONS === */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    max-width: 400px;
    pointer-events: none;
}

.toast {
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1), 0 4px 6px rgba(0, 0, 0, 0.05);
    margin-bottom: 12px;
    border-left: 4px solid #3b82f6;
    overflow: hidden;
    animation: slideInRight 0.3s ease-out;
    color: #1f2937;
    pointer-events: auto;
    border: 1px solid #e5e7eb;
}

.toast-success {
    border-left-color: #10b981;
}

.toast-error {
    border-left-color: #ef4444;
}

.toast-warning {
    border-left-color: #f59e0b;
}

.toast-info {
    border-left-color: #3b82f6;
}

.toast-content {
    padding: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #1f2937;
}

.toast-content span {
    color: #1f2937;
    font-weight: 500;
    line-height: 1.5;
}

.toast-content button {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: #6b7280;
    padding: 0;
    margin-left: 12px;
    font-weight: bold;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.toast-content button:hover {
    color: #374151;
    background: #f3f4f6;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* === ERROR & SUCCESS STATES === */
.form-error input,
.form-error textarea,
.form-error select {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.form-success input,
.form-success textarea,
.form-success select {
    border-color: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

/* === DISABLED STATES === */
input:disabled,
textarea:disabled,
select:disabled {
    background-color: #f9fafb;
    border-color: #e5e7eb;
    color: #9ca3af;
    cursor: not-allowed;
}

/* === FIX FABRIC.JS CANVAS TEXT BASELINE WARNING === */
.fabric-canvas {
    font-family: 'Inter', sans-serif !important;
}

canvas {
    font-family: 'Inter', sans-serif !important;
}

.canvas-container canvas {
    font-family: 'Inter', sans-serif !important;
}

/* === ANIMATIONS === */
@keyframes formFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .form-card {
        padding: 16px;
        margin-bottom: 16px;
    }
    
    .section-header {
        margin-bottom: 16px;
        padding-bottom: 8px;
    }
    
    .section-icon {
        width: 28px;
        height: 28px;
        margin-right: 10px;
    }
    
    .section-title {
        font-size: 16px;
    }
    
    #canvas-container, #overlay-container {
        max-width: 100%;
        margin: 0;
    }
    
    #working-crop-circle {
        width: 76px !important;
        height: 76px !important;
        border-width: 3px !important;
    }
    
    #working-crop-circle::after {
        width: 3px !important;
        height: 3px !important;
    }
    
    .toast-container {
        right: 10px;
        left: 10px;
        max-width: none;
    }
    
    .toast {
        margin-bottom: 8px;
    }
    
    .btn {
        padding: 0.5rem 0.75rem;
        font-size: 0.75rem;
    }
    
    .btn-download {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }
    
    input[type="text"], 
    input[type="email"], 
    textarea,
    select,
    input#sumber,
    textarea#judul,
    select#ratio {
        padding: 12px 14px !important;
        font-size: 16px !important; /* Prevent zoom on iOS */
    }
    
    input[type="range"]::-webkit-slider-thumb {
        width: 28px;
        height: 28px;
    }
    
    input[type="range"]::-moz-range-thumb {
        width: 28px;
        height: 28px;
    }
    
    .font-size-value {
        font-size: 11px;
        padding: 3px 6px;
        min-width: 40px;
    }
}

/* === ACCESSIBILITY === */
button:focus, 
input:focus, 
select:focus {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

/* === FORCE VISIBILITY & INTERACTION === */
#canvas-container, #overlay-container, 
#mainCanvas, #overlayCanvas,
.canvas-container {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
}

/* === CANVAS RATIO SPECIFIC === */
body[data-ratio="4:5"] #mainCanvas,
body[data-ratio="4:5"] #overlayCanvas {
    aspect-ratio: 4/5;
}

body[data-ratio="9:16"] #mainCanvas,
body[data-ratio="9:16"] #overlayCanvas {
    aspect-ratio: 9/16;
}

/* === UTILITY CLASSES === */
.hidden {
    display: none !important;
}

.invisible {
    visibility: hidden !important;
}

.disabled {
    opacity: 0.6;
    pointer-events: none;
    cursor: not-allowed;
}

/* === SMOOTH PERFORMANCE === */
#working-crop-circle {
    will-change: transform !important;
    transform: translateZ(0) !important;
    backface-visibility: hidden !important;
}

#mainCanvas, #overlayCanvas {
    will-change: transform !important;
    transform: translateZ(0) !important;
    backface-visibility: hidden !important;
}

.canvas-container {
    will-change: transform !important;
    transform: translateZ(0) !important;
    backface-visibility: hidden !important;
}

/* === CUSTOM SCROLLBAR === */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* === PRINT STYLES === */
@media print {
    .form-card {
        box-shadow: none;
        border: 1px solid #000;
        break-inside: avoid;
    }
    
    input, textarea, select {
        border: 1px solid #000;
        background: transparent;
    }
    
    .no-print {
        display: none !important;
    }
}

/* SOLUTION 1: Constrain overlay to parent container */
#overlay-container {
    position: relative;
    overflow: hidden !important; /* CRITICAL: Constrain overlay within card */
    isolation: isolate; /* Create new stacking context */
}

#overlay-container .form-card {
    position: relative;
    z-index: 1;
    overflow: hidden; /* Ensure card bounds are respected */
}

.smooth-preview-container {
    will-change: transform !important;
    transition: all 0.1s cubic-bezier(0.4, 0.0, 0.2, 1) !important;
}

.smooth-preview-clip {
    clip-path: circle(50%) !important;
    transition: all 0.1s ease-out !important;
}

.smooth-preview-image {
    will-change: transform !important;
    transition: none !important;
}

/* Biar drag di canvas tidak “ketarik” scroll halaman (desktop & mobile) */
#mainCanvas, #overlayCanvas, .canvas-container {
  touch-action: none;
  -ms-touch-action: none;
}
