/* Shared styles for overlays */
.exit-overlay, .idle-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9998;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.exit-overlay.show, .idle-overlay.show {
    display: block;
    opacity: 1;
}

/* Shared styles for popups */
.exit-popup, .idle-popup {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    z-index: 9999;
    max-width: 500px;
    width: 90%;
    text-align: center;
    opacity: 0;
    transition: all 0.3s ease;
}

.exit-popup.show, .idle-popup.show {
    display: block;
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.exit-popup h2, .idle-popup h2 {
    color: #333;
    margin-bottom: 15px;
    font-size: 28px;
}

.exit-popup p, .idle-popup p {
    color: #666;
    margin-bottom: 20px;
    font-size: 18px;
}

.close-link {
    color: #999;
    text-decoration: underline;
    cursor: pointer;
    font-size: 14px;
}

.close-link:hover {
    color: #666;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .exit-popup, .idle-popup {
        padding: 30px 20px;
        width: 95%;
    }

    .exit-popup h2, .idle-popup h2 {
        font-size: 24px;
    }

    .exit-popup p, .idle-popup p {
        font-size: 16px;
    }
}