/* Use homepage shared styles for dropzone (from /css/style.css) */

/* Cropper container styles */
.cropcontainer {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 32px;
    padding: 20px;
}

.result {
    max-width: 80%;
    max-height: 600px;
    margin-bottom: 20px;
    background: #f8f9fa;
    border-radius: 0; /* avoid misleading rounded look */
    overflow: hidden;
}

.result img {
    max-width: 100%;
    height: auto;
}

/* Message area styles */
.messgearea {
    text-align: center;
    margin: 20px 0;
    padding: 15px;
}

.messgearea .tiptext {
    color: #666;
    margin: 10px 0;
    font-size: 14px;
}

/* Button styles */
.compressbtn {
    background-color: #000;
    color: #fff;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.compressbtn:hover {
    background-color: #333;
    transform: translateY(-2px);
}

.othimg {
    background: white;
    border: 2px solid #000;
    color: #000;
}

.othimg:hover {
    background: #f8f9fa;
    color: #000;
}

/* Checkbox and input styles */
input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin-right: 8px;
    vertical-align: middle;
}

#color_front {
    border-radius: 50%;
    width: 22px;
    height: 22px;
    background-color: #f7f7f7;
    cursor: pointer;
    display: inline-block;
    border: 1px solid;
    box-shadow: rgba(100, 100, 111, 0.2) 0px 7px 29px 0px;
    vertical-align: middle;
}

#xsizebr {
    width: 50px;
    padding: 2px 5px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

/* Loading spinner */
#spinneroverl {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.9);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Responsive styles */
@media (max-width: 768px) {
    .cropcontainer {
        padding: 10px;
    }
    
    .result {
        max-width: 95%;
    }
    
    .compressbtn {
        padding: 10px 20px;
        font-size: 14px;
    }
}

/* Hide elements */
.hide {
    display: none !important;
}

/* Cropper customization */
.cropper-view-box {
    outline: 2px solid #007bff;
    outline-color: rgba(0, 123, 255, 0.75);
}

.cropper-line {
    background-color: #007bff;
}

.cropper-point {
    background-color: #007bff;
    width: 8px;
    height: 8px;
}

.cropper-point.point-se {
    width: 8px;
    height: 8px;
    opacity: 1;
}
