/* ============================================================
   pwa.css — عناصر الواجهة الخاصة بتطبيق الويب التقدّمي (PWA)
   (زر التثبيت، شريط حالة الاتصال، إشعار تحديث الإصدار)
   ============================================================ */

#pwa-install-btn {
    position: fixed;
    z-index: 9000;
    inset-inline-end: 18px;
    bottom: 96px;
    display: none;
    align-items: center;
    gap: 8px;
    background: #087e8b;
    color: #fff;
    border: 0;
    border-radius: 999px;
    padding: 12px 20px;
    font-size: 13.5px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 10px 26px rgba(8, 126, 139, .32);
    font-family: inherit;
}

#pwa-install-btn.show { display: inline-flex; }
#pwa-install-btn:active { transform: scale(.97); }

#pwa-net-bar {
    position: fixed;
    z-index: 9001;
    top: 0;
    inset-inline: 0;
    display: none;
    padding: 9px 16px;
    text-align: center;
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    background: #b3261e;
    font-family: inherit;
}

#pwa-net-bar.show { display: block; }
#pwa-net-bar.online { background: #2a9d8f; }

#pwa-update-bar {
    position: fixed;
    z-index: 9002;
    bottom: 0;
    inset-inline: 0;
    display: none;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 12px 16px;
    background: #0b3c49;
    color: #fff;
    font-size: 13px;
    font-family: inherit;
}

#pwa-update-bar.show { display: flex; }
#pwa-update-bar button {
    background: #fff;
    color: #0b3c49;
    border: 0;
    border-radius: 8px;
    padding: 7px 14px;
    font-weight: 700;
    cursor: pointer;
    font-size: 12.5px;
}

/* مؤشر جاهزية التطبيق داخل شاشة الإدارة */
.pwa-status-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(42, 157, 143, .1);
    color: #1d7a70;
    border: 1px solid rgba(42, 157, 143, .35);
    border-radius: 999px;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 600;
    margin: 0 6px 6px 0;
}
