/* PWA install & update bars */
#pwa-install-bar,
#pwa-update-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 10000;
    padding: 12px 16px;
    background: linear-gradient(135deg, #1a237e, #3949ab);
    color: #fff;
    box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.15);
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 0.9rem;
}

#pwa-install-bar.visible,
#pwa-update-bar.visible {
    display: flex;
}

#pwa-update-bar {
    background: linear-gradient(135deg, #2e7d32, #43a047);
}

.pwa-bar-text {
    flex: 1;
    min-width: 180px;
}

.pwa-bar-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.pwa-bar-btn {
    padding: 8px 16px;
    border-radius: 50px;
    border: none;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
}

.pwa-bar-btn-primary {
    background: #fff;
    color: #1a237e;
}

.pwa-bar-btn-ghost {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
}

@media (max-width: 480px) {
    #pwa-install-bar,
    #pwa-update-bar {
        flex-direction: column;
        text-align: center;
        padding-bottom: max(12px, env(safe-area-inset-bottom));
    }

    .pwa-bar-actions {
        width: 100%;
        justify-content: center;
    }
}
