/* assets/css/pwa.css - PWA Sync Status, Banners, and Indicators */

.pwa-sync-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    border: 1px solid transparent;
}

.pwa-sync-pill.online {
    background: rgba(40, 167, 69, 0.15);
    color: #28a745;
    border-color: rgba(40, 167, 69, 0.3);
}

.pwa-sync-pill.syncing {
    background: rgba(255, 193, 7, 0.18);
    color: #ffc107;
    border-color: rgba(255, 193, 7, 0.4);
}

.pwa-sync-pill.offline {
    background: rgba(253, 126, 20, 0.2);
    color: #fd7e14;
    border-color: rgba(253, 126, 20, 0.45);
    animation: pwaPulse 2s infinite;
}

.pwa-sync-pill.failed {
    background: rgba(220, 53, 69, 0.2);
    color: #dc3545;
    border-color: rgba(220, 53, 69, 0.4);
}

@keyframes pwaPulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.02); opacity: 0.85; }
    100% { transform: scale(1); opacity: 1; }
}

.pwa-install-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 14px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    background: linear-gradient(135deg, #0d6efd, #6610f2);
    color: white !important;
    border: none;
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.25);
    transition: all 0.25s ease;
}

.pwa-install-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(13, 110, 253, 0.35);
    color: white !important;
}

.pwa-toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    min-width: 300px;
    max-width: 420px;
    background: #1e293b;
    color: #ffffff;
    border-radius: 14px;
    padding: 14px 18px;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    gap: 12px;
    animation: pwaSlideUp 0.3s ease-out;
}

@keyframes pwaSlideUp {
    from { transform: translateY(100%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.pwa-toast.success { border-left: 4px solid #28a745; }
.pwa-toast.warning { border-left: 4px solid #ffc107; }
.pwa-toast.info    { border-left: 4px solid #0d6efd; }
.pwa-toast.danger  { border-left: 4px solid #dc3545; }
