/* AZ Upload — آپلودر لوکال (Drag & Drop + فشرده‌سازی) */
.az-up{display:flex;flex-direction:column;gap:10px;width:100%}
.az-up-zone{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;text-align:center;
  border:2px dashed #cbd5e1;border-radius:16px;padding:18px 14px;cursor:pointer;background:#f8fafc;transition:border-color .18s ease,background .18s ease,transform .18s ease}
.az-up-zone:hover{border-color:#818cf8;background:#eef2ff}
.az-up-zone.az-drag{border-color:#6366f1;background:#eef2ff;transform:scale(1.005)}
.az-up-icon{width:40px;height:40px;border-radius:12px;display:flex;align-items:center;justify-content:center;
  background:linear-gradient(135deg,#6366f1,#8b5cf6);color:#fff;font-size:17px;box-shadow:0 8px 18px rgba(99,102,241,.25)}
.az-up-title{font-size:13px;font-weight:900;color:#1f2937}
.az-up-sub{font-size:11.5px;color:#64748b;line-height:1.9}
.az-up-hint{font-size:10.5px;color:#94a3b8;direction:ltr}
.az-up-input{display:none}
.az-up-panel{display:flex;flex-wrap:wrap;gap:10px 14px;align-items:center;background:#f1f5f9;border:1px solid #e2e8f0;
  border-radius:12px;padding:8px 12px;font-size:11.5px;color:#475569}
.az-up-panel.az-up-off{opacity:.55}
.az-up-opt{display:inline-flex;align-items:center;gap:6px;font-weight:700;white-space:nowrap}
.az-up-opt input[type=checkbox]{width:15px;height:15px;accent-color:#6366f1;margin:0}
.az-up-opt select{height:28px;border-radius:8px;border:1px solid #dbe1ec;background:#fff;padding:0 6px;font-size:11.5px;color:#334155}
.az-up-opt input[type=range]{width:96px;accent-color:#6366f1}
.az-up-qv{color:#4338ca;font-weight:900;min-width:34px;direction:ltr}
.az-up-list{display:flex;flex-direction:column;gap:8px}
.az-up-card{display:flex;align-items:center;gap:10px;border:1px solid #e7ecf5;border-radius:14px;background:#fff;padding:8px 10px;
  transition:border-color .18s ease,box-shadow .18s ease}
.az-up-card.az-done{border-color:#bbf7d0;background:#f7fef9}
.az-up-card.az-err{border-color:#fecaca;background:#fef2f2}
.az-up-prev{width:56px;height:56px;border-radius:11px;overflow:hidden;background:#eef2f7;display:flex;align-items:center;justify-content:center;
  color:#a3aebb;flex:0 0 56px;font-size:18px}
.az-up-prev img,.az-up-prev video{width:100%;height:100%;object-fit:cover;display:block}
.az-up-info{flex:1 1 auto;min-width:0;display:flex;flex-direction:column;gap:3px}
.az-up-name{font-size:12px;font-weight:800;color:#1f2937;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;direction:ltr;text-align:start}
.az-up-metas{display:flex;flex-wrap:wrap;gap:8px;font-size:10.5px;color:#94a3b8;direction:ltr}
.az-up-sizes b{color:#0f766e}
.az-up-save{background:#dcfce7;color:#15803d;border-radius:6px;padding:0 5px;font-weight:900;direction:rtl;display:inline-block}
.az-up-bar{height:4px;border-radius:99px;background:#eef2f7;overflow:hidden}
.az-up-bar i{display:block;height:100%;width:0;border-radius:99px;background:linear-gradient(90deg,#6366f1,#8b5cf6);transition:width .2s ease}
.az-up-card.az-done .az-up-bar i{background:linear-gradient(90deg,#10b981,#34d399)}
.az-up-state{font-size:10.5px;font-weight:700;color:#64748b}
.az-up-state.is-done{color:#15803d}
.az-up-state.is-error{color:#b91c1c}
.az-up-state.is-uploading,.az-up-state.is-preparing{color:#4338ca}
.az-up-del{border:0;background:#f1f5f9;color:#64748b;width:30px;height:30px;border-radius:9px;cursor:pointer;flex:0 0 30px}
.az-up-del:hover{background:#fee2e2;color:#b91c1c}
.az-up-foot{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.az-up-foot .admin-button{padding:7px 12px;font-size:11.5px;border-radius:10px}
.az-up-status{font-size:11px;color:#8a94a8;font-weight:700;margin-inline-start:auto;direction:ltr}
.az-media-field{display:flex;flex-direction:column;gap:8px}
.az-media-current{display:flex;align-items:center;gap:10px;border:1px solid #e7ecf5;border-radius:12px;padding:8px 10px;background:#fff}
.az-media-current img,.az-media-current video{width:54px;height:54px;border-radius:9px;object-fit:cover;background:#eef2f7}
.az-media-current .az-media-path{flex:1;min-width:0;font-size:10.5px;color:#64748b;direction:ltr;word-break:break-all}
.az-media-current button{border:0;background:#fee2e2;color:#b91c1c;border-radius:8px;width:28px;height:28px;cursor:pointer}
html[data-theme="dark"] .az-up-zone{background:#111827;border-color:#334155}
html[data-theme="dark"] .az-up-title{color:#e5e7eb}
html[data-theme="dark"] .az-up-card{background:#0f172a;border-color:#1f2937}
html[data-theme="dark"] .az-up-panel{background:#0b1220;border-color:#1f2937;color:#cbd5e1}
html[data-theme="dark"] .az-up-current{background:#0f172a;border-color:#1f2937}
