/* PWA Install Prompt Styles */
#pwa-install-banner {
    animation: slideUpBanner 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes slideUpBanner {
    from {
        transform: translate(-50%, 150px);
        opacity: 0;
    }
    to {
        transform: translate(-50%, 0);
        opacity: 1;
    }
}

@keyframes slideIn {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(400px);
        opacity: 0;
    }
}

/* PWA Install Button Hover Effects */
#pwa-install-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    transition: all 0.2s ease;
}

#pwa-dismiss-btn:hover {
    background: rgba(255,255,255,0.2);
    transition: all 0.2s ease;
}

/* Responsive Design for PWA Banner */
@media (max-width: 768px) {
    #pwa-install-banner {
        bottom: 10px !important;
        left: 10px !important;
        right: 10px !important;
        transform: none !important;
        max-width: none !important;
        flex-direction: column;
        text-align: center;
    }
    
    #pwa-install-banner > div {
        width: 100%;
    }
    
    #pwa-install-btn, #pwa-dismiss-btn {
        width: 100%;
        margin-top: 10px;
    }
}

/* Online/Offline Indicator */
.connection-status {
    position: fixed;
    top: 10px;
    right: 10px;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    z-index: 9999;
    display: none;
}

.connection-status.online {
    background: #28a745;
    color: white;
}

.connection-status.offline {
    background: #dc3545;
    color: white;
}

/* PWA Standalone Mode Styles */
@media all and (display-mode: standalone) {
    body {
        padding-top: constant(safe-area-inset-top);
        padding-top: env(safe-area-inset-top);
        padding-bottom: constant(safe-area-inset-bottom);
        padding-bottom: env(safe-area-inset-bottom);
    }
}
