/* ========================================
   VECTEUR PWA - Progressive Web App Styles
   ======================================== */

/* Offline Banner */
.pwa-offline-banner {
    display: none;
    background: linear-gradient(90deg, #ef4444, #dc2626);
    color: white;
    padding: 8px 16px;
    text-align: center;
    font-size: 0.875rem;
    z-index: 1050;
    position: relative;
    box-shadow: 0 2px 4px rgba(0,0,0,0.15);
}
.pwa-offline-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}
.pwa-offline-icon {
    opacity: 0.9;
}
.pwa-pending-badge {
    background: rgba(255,255,255,0.2);
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Syncing Banner */
.pwa-syncing-banner {
    display: none;
    background: linear-gradient(90deg, #1DA1F2, #1689B5);
    color: white;
    padding: 8px 16px;
    text-align: center;
    font-size: 0.875rem;
    z-index: 1050;
    position: relative;
}
.pwa-syncing-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

/* Update Banner */
.pwa-update-banner {
    display: none;
    background: linear-gradient(90deg, #10b981, #059669);
    color: white;
    padding: 10px 16px;
    text-align: center;
    font-size: 0.875rem;
    z-index: 1050;
    position: relative;
}
.pwa-update-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}
.pwa-update-btn {
    background: white;
    color: #059669;
    border: none;
    padding: 4px 16px;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    font-size: 0.8rem;
}
.pwa-update-btn:hover { opacity: 0.9; }
.pwa-update-dismiss {
    background: none;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0 4px;
    opacity: 0.8;
}
.pwa-update-dismiss:hover { opacity: 1; }

/* Install Button */
.pwa-install-btn {
    display: none;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #1DA1F2, #1689B5);
    color: white;
    border: none;
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    margin-right: 8px;
}
.pwa-install-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(29, 161, 242, 0.4);
}
.pwa-install-btn:active { transform: translateY(0); }

@media (max-width: 768px) {
    .pwa-install-text { display: none; }
    .pwa-install-btn { padding: 6px 10px; }
    .pwa-offline-banner, .pwa-syncing-banner, .pwa-update-banner {
        font-size: 0.8rem;
        padding: 6px 10px;
    }
}

/* Standalone mode adjustments (when installed as PWA) */
@media (display-mode: standalone) {
    body { padding-top: env(safe-area-inset-top); }
    .navbar, .assureur-topbar, .patient-topbar {
        padding-top: env(safe-area-inset-top);
    }
}
