/* PWA-specific styles */

/* Offline indicator */
#offline-indicator {
    position: fixed;
    bottom: 60px;
    left: 0;
    right: 0;
    text-align: center;
    background: #f44336;
    color: white;
    padding: 8px;
    z-index: 1000;
    display: none;
}

/* Install button */
.floating-install-btn {
    position: fixed;
    bottom: 80px;
    right: 20px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    width: 56px;
    height: 56px;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    cursor: pointer;
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
}

.floating-install-btn.visible {
    display: flex;
}

.floating-install-btn:hover {
    transform: scale(1.05);
    background-color: var(--primary-dark);
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(12, 130, 119, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(12, 130, 119, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(12, 130, 119, 0);
    }
}

/* PWA installed state */
.pwa-installed .browser-only {
    display: none !important;
}

.pwa-installed .pwa-only {
    display: block !important;
}

/* By default, hide pwa-only elements */
.pwa-only {
    display: none !important;
}

/* Install Modal */
#install-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1100;
}

.install-modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
}

.install-modal-content {
    position: relative;
    background-color: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 90%;
    width: 400px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    z-index: 1101;
}

.install-modal-content h2 {
    color: var(--primary-color);
    margin-top: 0;
}

.install-modal-content ul {
    padding-left: 20px;
    margin-bottom: 20px;
}

.install-modal-content li {
    margin-bottom: 10px;
    line-height: 1.5;
}

.install-modal-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-secondary);
} 