/* PWA Install Modal Styles */
.pwa-modal {
    display: none;
    position: fixed;
    z-index: 99999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.pwa-modal-content {
    background-color: #fff;
    margin: 20px;
    padding: 0;
    border-radius: 20px;
    max-width: 400px;
    width: 90%;
    position: relative;
    animation: slideUp 0.4s ease-out;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.pwa-modal-close {
    position: absolute;
    right: 15px;
    top: 15px;
    color: #999;
    font-size: 32px;
    font-weight: bold;
    border: none;
    background: none;
    cursor: pointer;
    transition: color 0.3s;
    z-index: 1;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.pwa-modal-close:hover {
    color: #333;
    background: rgba(0, 0, 0, 0.05);
}

.pwa-modal-body {
    padding: 40px 30px 30px;
    text-align: center;
}

.pwa-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 20px;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.pwa-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.pwa-modal-body h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #333;
}

.pwa-modal-body p {
    font-size: 15px;
    color: #666;
    margin-bottom: 25px;
    line-height: 1.6;
}

.pwa-benefits {
    display: flex;
    justify-content: space-around;
    margin-bottom: 25px;
    padding: 20px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.benefit-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.benefit-item i {
    font-size: 28px;
    color: #1e40af;
}

.benefit-item span {
    font-size: 12px;
    color: #666;
    font-weight: 500;
}

.pwa-modal-body .btn-block {
    width: 100%;
    padding: 14px;
    font-size: 16px;
    font-weight: 600;
}

.pwa-modal-body .btn-block i {
    margin-right: 8px;
}

/* Responsive adjustments */
@media (max-width: 480px) {
    .pwa-modal-content {
        margin: 15px;
        border-radius: 15px;
    }

    .pwa-modal-body {
        padding: 35px 20px 25px;
    }

    .pwa-icon {
        width: 80px;
        height: 80px;
    }

    .pwa-modal-body h3 {
        font-size: 20px;
    }

    .pwa-modal-body p {
        font-size: 14px;
    }

    .benefit-item i {
        font-size: 24px;
    }

    .benefit-item span {
        font-size: 11px;
    }
}

/* PWA Install Button in Header */
#pwa-install-btn {
    animation: pulse-glow 2s infinite;
}

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
    }
    50% {
        box-shadow: 0 0 0 8px rgba(34, 197, 94, 0);
    }
}
