.install-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); 
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1002; 
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.install-popup-overlay.visible {
    opacity: 1;
    visibility: visible;
}

.install-popup-content {
    background-color: white;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    text-align: center;
    width: 80%;
    max-width: 500px;
    position: relative; 
    transform: scale(0.9);
    opacity: 0.5;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.install-popup-overlay.visible .install-popup-content {
    transform: scale(1);
    opacity: 1;
}

.install-popup-content h2 {
    color: #3B82F6;
    margin-top: 0;
    margin-bottom: 1rem;
}

.install-popup-content p {
    margin-bottom: 1.5rem;
    color: #555;
}

.install-button {
    background: linear-gradient(135deg, #3B82F6, #8B5CF6);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.install-button:hover {
    background: linear-gradient(135deg, #5A9DF8, #A371FA);
    transform: scale(1.05);
}

.popup-close-button {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: none;
    border: none;
    color: #aaa;
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.3s ease, transform 0.3s ease;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    padding: 0;
}

.popup-close-button:hover {
    color: #888;
    background-color: rgba(0, 0, 0, 0.05);
    transform: rotate(90deg);
}

/* Dark mode styles for the popup */
body.dark-mode .install-popup-content {
    background-color: #1f2937;
    color: #e5e7eb;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

body.dark-mode .install-popup-content h2 {
    color: #93C5FD; 
}

body.dark-mode .install-popup-content p {
    color: #d1d5db; 
}

body.dark-mode .download-button i.bi-google-play {
    color: #2196F3;
}

body.dark-mode .download-button i.bi-apple {
    color: #fff;
}

body.dark-mode .install-button {
    background: linear-gradient(135deg, #1E40AF, #6D28D9);
}

body.dark-mode .install-button:hover {
    background: linear-gradient(135deg, #3B82F6, #8B5CF6);
}

body.dark-mode .popup-close-button {
    color: #777;
}

body.dark-mode .popup-close-button:hover {
    color: #bbb;
    background-color: rgba(255, 255, 255, 0.1);
}