.dz-wrapper {
    font-family: Tahoma, Vazir, Vazirmatn, sans-serif;
    direction: rtl; /* تنظیم جهت نوشتار برای فارسی */
}

.dz-zone {
    border: 2px dashed var(--alm-border-color);
    border-radius: 10px;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    color: #888;
    background: var(--alm-input-bg);
    user-select: none;
    outline: none; /* برای فوکوس کیبورد */
}

/* نمایش فوکوس کیبورد برای دسترس‌پذیری */
.dz-zone:focus-visible {
    border-color: #4f8ef7;
    box-shadow: 0 0 0 3px rgba(79, 142, 247, 0.3);
}

.dz-zone.dragover {
    border-color: #4f8ef7;
    background: #eef3ff;
    color: #4f8ef7;
}

.dz-zone.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.dz-icon {
    width: 40px;
    height: 40px;
    margin-bottom: 0.5rem;
    opacity: 0.5;
}

.dz-zone p { font-size: 0.9rem; margin: 0; font-weight: bold; }
.dz-zone span { font-size: 0.8rem; color: #aaa; }

.dz-file-list {
    margin-top: 0.8rem;
}

.dz-file-item {
    padding: 0.6rem;
    background: var(--alm-input-bg);
    border: 1px solid var(--alm-border-color);
    border-radius: 8px;
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
    color: #444;
}

.dz-file-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.dz-file-name {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    padding-left: 10px; /* فاصله از سمت چپ در محیط راست‌چین */
}

.dz-file-size {
    color: #999;
    font-size: 0.78rem;
    margin: 0 0.5rem;
    direction: ltr; /* سایزها معمولا انگلیسی نوشته میشوند */
}

.dz-remove-btn {
    background: none;
    border: none;
    color: #e55;
    cursor: pointer;
    font-size: 1.1rem;
    padding: 0 4px;
    line-height: 1;
    border-radius: 4px;
    transition: background 0.2s;
}

.dz-remove-btn:hover {
    background: #fee;
}

.dz-progress-bar {
    height: 6px;
    background: #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
    direction: ltr; /* نوار پیشرفت از چپ به راست پر شود */
}

.dz-progress-fill {
    height: 100%;
    width: 0%;
    background: #4f8ef7;
    border-radius: 4px;
    transition: width 0.2s ease, background-color 0.2s ease;
}

.dz-progress-fill.success { background: #34c759; }
.dz-progress-fill.error   { background: #e53935; }

.dz-status {
    font-size: 0.78rem;
    margin-top: 0.3rem;
    color: #888;
}

.dz-status.success { color: #34c759 !important; font-weight: bold; }
.dz-status.error   { color: #e53935 !important; font-weight: bold; }

/* استایل‌های مربوط به پیش‌نمایش تصویر در دراپ‌زون */
.dz-preview-img {
    width: 50px;
    height: 50px;
    object-fit: cover; /* باعث می‌شود عکس بدون دفرمه شدن، مربع شود */
    border-radius: 8px; /* گوشه‌های گرد */
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    border: 1px solid #ddd;
    display: block;
}

.dz-preview-container {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f9f9f9;
    border-radius: 8px;
}

