/* PWA Installation Styles */

/* Install Button */
.pwa-install-btn {
    position: fixed;
    bottom: 80px;
    right: 20px;
    z-index: 1030;
    display: none;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    animation: slideInRight 0.3s ease, pulse 2s ease infinite;
}

.pwa-install-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

/* Update Notification */
.pwa-update-notification {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1050;
    margin: 0;
    border-radius: 0;
    border: none;
    border-bottom: 3px solid #0dcaf0;
    animation: slideInDown 0.3s ease;
}

/* Installed Notification */
.pwa-installed-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1050;
    min-width: 300px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    animation: slideInRight 0.3s ease;
}

/* PWA Mode Adjustments */
body.pwa-installed {
    /* Adjust layout for standalone mode */
    padding-bottom: 0;
}

/* Hide install button when installed */
body.pwa-installed .pwa-install-btn {
    display: none !important;
}

/* Animations */
@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-100%);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    }
    50% {
        box-shadow: 0 4px 12px rgba(214, 51, 132, 0.4);
    }
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .pwa-install-btn {
        bottom: 70px;
        right: 10px;
        left: 10px;
        justify-content: center;
    }

    .pwa-installed-notification,
    .pwa-update-notification {
        left: 10px;
        right: 10px;
    }
}

/* Offline Indicator */
.offline-indicator {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: #dc3545;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.875rem;
    z-index: 1040;
    animation: slideInUp 0.3s ease;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(100%);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}
