.uploader-widget, #fileUploaderContainer {
    font-family: Tahoma,Arial,sans-serif;
    max-width: 700px;
    margin: 20px auto;
    direction: rtl;
}

.uw-dropzone {
    border: 2px dashed #ccc;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    border-radius: 10px;
}

    .uw-dropzone.dragover {
        background: #eef6ff;
        border-color: #2563eb;
    }

.uw-drop-text {
    font-weight: bold;
    margin-bottom: 5px;
}

.uw-controls {
    margin-top: 10px;
    display: flex;
    gap: 8px;
}

.uw-btn {
    background: #2563eb;
    color: #fff;
    border: none;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
}

.uw-clear {
    background: #dc2626;
}

.uw-previews {
    margin-top: 15px;
    display: grid;
    grid-template-columns: repeat(auto-fill,minmax(120px,1fr));
    gap: 10px;
}

.uw-thumb {
    position: relative;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 5px;
}

    .uw-thumb img {
        width: 100%;
        height: 100px;
        object-fit: cover;
        border-radius: 6px;
        cursor: pointer;
    }

.uw-meta {
    font-size: 11px;
    color: #555;
    margin-top: 4px;
    display: flex;
    justify-content: space-between;
}

.uw-remove {
    position: absolute;
    top: 5px;
    left: 5px;
    width: 24px;
    height: 24px;
    border: none;
    border-radius: 6px;
    background: rgba(0,0,0,0.6);
    color: #fff;
    cursor: pointer;
    font-size: 16px;
    line-height: 20px;
}

.uw-empty {
    text-align: center;
    color: #777;
    margin-top: 10px;
}
/* Modal */
.uw-modal {
    position: fixed;
    inset: 0;
    display: none;
    justify-content: center;
    align-items: center;
    background: rgba(0,0,0,.7);
    z-index: 9999;
}

    .uw-modal.open {
        display: flex;
    }

.uw-modal-content {
    background: #fff;
    padding: 10px;
    border-radius: 10px;
    max-width: 90%;
    max-height: 90%;
    position: relative;
}

    .uw-modal-content img {
        max-width: 100%;
        max-height: 80vh;
        display: block;
    }

.uw-modal-close {
    position: absolute;
    top: 5px;
    left: 5px;
    background: rgba(0,0,0,0.6);
    color: #fff;
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    font-size: 18px;
    cursor: pointer;
}
