/*!
 * © 2025 Anton O. — harkushyn.com
 * Proprietary license. Viewing and execution allowed only when the
 * script is delivered from https://harkushyn.com. Any reproduction,
 * modification, distribution or embedding elsewhere is strictly
 * prohibited without prior written consent.
*/

.top-editor-upload-photo {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    padding: 0;
}


/* General Container */
.container-editor-photo {
    position: relative;
    margin: auto;
    max-width: 1200px;
    width: 100%;
    max-height: 1200px;
    height: 100%;
    border-radius: 15px;
    background: #fff;
    pointer-events: auto;
}

/* Progress Bar */
.progress-bar {
    height: 4px;
    background: #4caf50;
    width: 0;
    transition: width 0.4s ease;
    margin-top: 10px;
    border-radius: 2px;
}

/* Upload Box */
#drop-zone {
    max-width: 100%;
    max-height: 50px; /*default*/
    height: 500px;
    border-radius: 10px;
    border: 2px dashed #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #aaa;
    font-family: Arial, sans-serif;
    transition: border-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}


#drop-zone.dragover {
    border-color: #000;
    color: #000;
}

/* Image Container */
.image-container {
    position: relative;
    width: 100%;
    height: 100%;
}

#uploaded-image {
    display: block;
    width: 100%;
    height: 100%;
}


.cropper-container {
    border-radius: 10px;
}

#fileInput {
    display: none;
}

#close-btn {
    position: absolute;
    top: 5px;
    right: 5px;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    font-size: 16px;
    text-align: center;
    line-height: 30px;
    cursor: pointer;
    display: none;
}


/* Control Panel */
.controls {
    display: inline-block;
    justify-content: flex-start;
    align-items: center;
    padding: 10px;
    gap: 10px;
    max-width: 100vw;
    overflow-x: auto;
}

/* Updated Control Buttons */
.controls button,
.controls label {
    background: linear-gradient(to bottom, #ffffff, #e6e6e6);
    border: 1px solid #ccc;
    border-radius: 20px; /* Rounded corners */
    padding: 8px 16px;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
    display: flex;
    align-items: center;
    font-family: 'Arial', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Button shadow */
}

.controls button:hover,
.controls label:hover {
    background: linear-gradient(to bottom, #e6e6e6, #d4d4d4);
    /*transform: translateY(-2px); /* Slight lift on hover */
}

.controls button:active,
.controls label:active {
    background: #ccc;
    transform: translateY(1px); /* Pressed down effect */
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.15); /* Inset shadow on active */
}

.controls input[type="checkbox"] {
    transform: scale(1.25);
    margin-right: 5px;
}

.controls img {
    width: 20px;
    height: 20px;
    margin-right: 5px; /* Adding a small margin between icon and text */
}

.browse-button {
    cursor: pointer;
    color: #007bff;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.browse-button:hover {
    color: #0056b3;
}

.circle-crop .cropper-view-box,
.circle-crop .cropper-face {
    border-radius: 50%;
}

