
/* =====================================================================================================================
   GLOBAL IMAGE UPLOADER THEME
 ======================================================================================================================*/

.document-uploader-input-with-preview {
    width: 100%;
    min-height: 100px;
    padding: 18px;
    border: 2px dashed #cbd5e1;
    border-radius: 16px;
    background: linear-gradient(135deg, #f8fbff 0%, #f1f5f9 100%);
    text-align: center;
    font-size: 14px;
    color: #0A192F;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: all 0.25s ease;
    overflow: hidden;
}

.document-uploader-input-with-preview::before {
    content: "⬆";
    position: absolute;
    top: 12px;
    font-size: 22px;
    color: #01A92E;
    opacity: 0.9;
}

.document-uploader-input-with-preview p {
    margin: 0;
    color: #475569;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.5;
}

.document-uploader-input-with-preview:hover {
    border-color: #01A92E;
    background: linear-gradient(135deg, #f0fff4 0%, #ecfdf5 100%);
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(1, 169, 46, 0.08);
}

.document-uploader-input-with-preview.dragover {
    border-color: #01A92E;
    background: #ecfdf5;
    transform: scale(1.01);
    box-shadow: 0 0 0 4px rgba(1, 169, 46, 0.12);
}

.document-uploader-preview-container {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 16px;
}

.document-uploader-preview-box {
    position: relative;
    width: 110px;
    height: 110px;
    border-radius: 14px;
    overflow: hidden;
    background: #fff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.document-uploader-preview-box:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.12);
    border-color: #cbd5e1;
}

.document-uploader-preview-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.document-uploader-remove-btn {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 24px;
    height: 24px;
    border: none;
    border-radius: 50%;
    background: rgba(239, 68, 68, 0.95);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
    box-shadow: 0 4px 10px rgba(239, 68, 68, 0.25);
    transition: all 0.2s ease;
    z-index: 10;
}

.document-uploader-remove-btn:hover {
    transform: scale(1.08);
    background: #dc2626;
}

.error-border {
    border-color: #ef4444 !important;
    background: #fef2f2 !important;
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.08) !important;
}

@media (max-width: 576px) {

    .document-uploader-preview-box {
        width: 90px;
        height: 90px;
    }

    .document-uploader-input-with-preview {
        min-height: 90px;
        padding: 14px;
    }

    .document-uploader-input-with-preview::before {
        font-size: 18px;
        top: 10px;
    }

    .document-uploader-input-with-preview p {
        font-size: 12px;
    }
}

