/* ============================================================
   أدواتي — منطقة الرفع الموحّدة + حالة الانتظار (adw-dz)
   تصميم واحد حرفياً لكل أدوات الملفات، عربياً وإنجليزياً.
   يُحمَّل من includes/critical-css.php بعد output.css.
   ============================================================ */

/* ---------- المنطقة: الحالة العادية ---------- */
.adw-dz {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    cursor: pointer;
    border: 2px dashed #7c6cf0;
    border-radius: 18px;
    background: linear-gradient(135deg, #f3f1ff, #eaf3ff);
    padding: 30px 20px 26px;
    min-height: 172px;
    transition: box-shadow .2s ease, border-color .2s ease, background .2s ease;
}
.adw-dz:hover { border-color: #7c6cf0; }

/* ---------- حالة السحب فوق المنطقة ---------- */
.adw-dz.adw-dz-over {
    border-color: #5a48e0 !important;
    background: linear-gradient(135deg, #e7e2ff, #d8e9ff) !important;
    box-shadow: 0 0 0 5px rgba(124, 108, 240, .18);
}
.adw-dz.adw-dz-over .adw-dz-badge { transform: scale(1.12); }

/* ---------- إخفاء العناصر الأصلية بعد التفعيل ---------- */
.adw-dz-enhanced > :not(input):not(.adw-dz-ui) { display: none !important; }

/* ---------- طبقة العرض ---------- */
.adw-dz-ui {
    pointer-events: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
}
.adw-dz-main {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.adw-dz-badge {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: linear-gradient(135deg, #7c6cf0, #4f7df9);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    box-shadow: 0 8px 18px rgba(108, 92, 231, .35);
    transition: transform .2s ease;
    flex: none;
}
.adw-dz-badge svg { width: 28px; height: 28px; }
.adw-dz-title {
    font-weight: 800;
    font-size: 15.5px;
    color: #2b2350;
    margin: 0 0 5px;
    line-height: 1.7;
}
.adw-dz-sub {
    font-size: 12.5px;
    color: #5a5480;
    margin: 0 0 14px;
    line-height: 1.8;
}
.adw-dz-btn {
    display: inline-block;
    background: linear-gradient(135deg, #7c6cf0, #4f7df9);
    color: #fff;
    font-weight: 700;
    font-size: 13.5px;
    padding: 9px 28px;
    border-radius: 999px;
    box-shadow: 0 6px 14px rgba(108, 92, 231, .30);
}
.adw-dz-trust {
    margin-top: 12px;
    font-size: 12px;
    font-weight: 600;
    color: #0e7a55;
    display: flex;
    align-items: center;
    gap: 5px;
}
.adw-dz-trust svg { width: 13px; height: 13px; flex: none; }

/* ---------- حالة ما بعد اختيار الملفات: شريط الملخص ---------- */
.adw-dz.adw-dz-done {
    min-height: 0;
    padding: 14px 18px;
}
.adw-dz-done .adw-dz-main { display: none; }
.adw-dz-summary {
    display: none;
    width: 100%;
    align-items: center;
    gap: 10px;
    text-align: start;
}
.adw-dz-done .adw-dz-summary { display: flex; }
.adw-dz-sum-ic {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: linear-gradient(135deg, #7c6cf0, #4f7df9);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: none;
}
.adw-dz-sum-ic svg { width: 20px; height: 20px; flex: none; }
.adw-dz-sum-txt { flex: 1; min-width: 0; }
.adw-dz-sum-t {
    display: block;
    font-size: 13.5px;
    font-weight: 700;
    color: #2b2350;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.adw-dz-sum-s { display: block; font-size: 11.5px; color: #5a5480; }
.adw-dz-sum-btn {
    font-size: 12.5px;
    font-weight: 700;
    color: #6a5ae0;
    flex: none;
}

/* ---------- البديل المصغّر (مناطق ثانوية داخل الأداة) ---------- */
.adw-dz.adw-dz-mini {
    min-height: 0;
    padding: 18px 14px 16px;
}
.adw-dz-mini .adw-dz-badge { width: 44px; height: 44px; margin-bottom: 8px; }
.adw-dz-mini .adw-dz-badge svg { width: 21px; height: 21px; }
.adw-dz-mini .adw-dz-title { font-size: 13.5px; }
.adw-dz-mini .adw-dz-sub { font-size: 11.5px; margin-bottom: 10px; }
.adw-dz-mini .adw-dz-btn { padding: 7px 20px; font-size: 12.5px; }
.adw-dz-mini .adw-dz-trust { display: none; }

/* ---------- حالة الانتظار: خطوات + حقائق سريعة ---------- */
.adw-wait {
    margin-top: 14px;
    background: #fff;
    border: 1px solid #e6e2fb;
    border-radius: 16px;
    padding: 14px 16px;
    box-shadow: 0 1px 2px rgba(43, 35, 80, .04);
}
.adw-wait-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}
.adw-step {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 13px;
    font-weight: 700;
    color: #3d3670;
}
.adw-step-n {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, #7c6cf0, #4f7df9);
    color: #fff;
    font-size: 12.5px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: none;
}
.adw-step-arrow { color: #a79df0; font-weight: 800; font-size: 14px; }
.adw-wait-facts {
    margin: 10px 0 0;
    text-align: center;
    font-size: 12px;
    color: #6b6590;
    line-height: 1.9;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex-wrap: wrap;
}
.adw-wait-facts .adw-fact-local {
    color: #0e7a55;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.adw-wait-facts .adw-fact-local svg { width: 13px; height: 13px; }
.adw-wait-hide { display: none !important; }

@media (max-width: 480px) {
    .adw-wait-steps { gap: 6px; }
    .adw-step { font-size: 12px; }
    .adw-dz { padding: 24px 14px 20px; }
}
