﻿
.image-wrapper {
    position: absolute;
    user-select: none;
    -webkit-user-select: none;
    touch-action: none;
    padding: 0;
}

.image-content {
    width: 100%;
    height: 100%;
    overflow: hidden;
    position: relative;
    transition: all 0.2s ease-out;
    box-sizing: border-box;
}

    .image-content img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
        pointer-events: none;
    }
.polaroid-border {
    aspect-ratio: 4/3;
    background-color: white;
    padding: 2cqw;    
    z-index: 1;
}

    .polaroid-border img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }


.rotate-handle {
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    width: 12px;
    height: 12px;
    background-color: white;
    border: 1px solid #333;
    border-radius: 50%;
    cursor: grab;
    z-index: 30;
}

    .rotate-handle::after {
        content: '';
        position: absolute;
        top: 100%;
        left: 50%;
        width: 1px;
        height: 12px;
        background-color: #333;
        transform: translateX(-50%);
    }

.btn-upload {
    display: block;
    padding: 10px;
    background-color: #f0f0f0;
    border: 1px dashed #999;
    text-align: center;
    cursor: pointer;
    border-radius: 4px;
    transition: background 0.2s;
}

    .btn-upload:hover {
        background-color: #e9e9e9;
        border-color: #666;
    }

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 36px;
    height: 20px;
    margin-right: 10px;
}

    .toggle-switch input {
        opacity: 0;
        width: 0;
        height: 0;
    }

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 34px;
}

    .slider:before {
        position: absolute;
        content: "";
        height: 16px;
        width: 16px;
        left: 2px;
        bottom: 2px;
        background-color: white;
        transition: .4s;
        border-radius: 50%;
    }

input:checked + .slider {
    background-color: #2196F3;
}

    input:checked + .slider:before {
        transform: translateX(16px);
    }

.error-msg {
    color: #dc3545;
    font-size: 0.8rem;
    margin-top: 5px;
}
.interaction-shield {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 9999;
    background-color: transparent;
    user-select: none;
}

.no-transition {
    transition: none !important;
}

.shape-circle {
    clip-path: circle(closest-side at 50% 50%);
}

.shape-heart {
    aspect-ratio: 1;
    mask: radial-gradient(at 70% 31%,#000 29%,#0000 30%), radial-gradient(at 30% 31%,#000 29%,#0000 30%), linear-gradient(#000 0 0) bottom/100% 50% no-repeat;
    clip-path: polygon(-41% 0,50% 91%, 141% 0);
}

.shape-star {
    clip-path: polygon(50% 2%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}

.shape-default {
    clip-path: none;
}/* Photo upload area */
.photo-upload-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    padding: 2rem 1rem;
    border: 2px dashed #dee2e6;
    border-radius: 12px;
    background-color: #f8f9fa;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.photo-upload-area:hover {
    background-color: #e9ecef;
    border-color: #adb5bd;
}

.photo-upload-area i {
    font-size: 2rem;
    color: #6c757d;
}

.photo-upload-area span {
    font-weight: 600;
    color: #495057;
}

.photo-upload-area small {
    color: #adb5bd;
    font-size: 0.8rem;
}
