#popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s ease, visibility 0.3s;
    padding: 20px;
    box-sizing: border-box;
    overflow: auto; /* Permite rolagem no overlay se necessário */
}

/* Janela do popup */
#popup {
    background: white;
    padding: 20px;
    border-radius: 10px;
    max-width: 825px;
    width: 100%;
    max-height: 90vh; /* Garante que o popup não ultrapasse a tela */
    overflow-y: auto; /* Scroll interno se o conteúdo for grande */
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    text-align: center;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

#popup pre {
    white-space: pre-wrap; /* Mantém quebras e formata bem */
    word-break: break-word;
    background-color: #f9f9f9;
    padding: 10px;
    border-radius: 5px;
    overflow-y: auto;
    max-height: 60vh;
    margin-top: 10px;
    text-align: justify;
    color: #696969;
    font-family: "Inter", Sans-serif;
    font-size: 16px;
    font-weight: 400;

}

#popup h2 {
    margin-top: 0;
    font-size: 2rem;
    color: #00796B;
    font-weight: 700;
}

#popup p {
    font-size: 1rem;
    margin: 15px 0;
}

#popup button {
    padding: 10px 20px;
    font-size: 1rem;
    background-color: #00796b;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

/* Mostrar popup */
#popup-overlay.active {
    visibility: visible;
    opacity: 1;
}

/* Responsividade */
@media (max-width: 480px) {
    #popup h2 {
    font-size: 1.3rem;
    }

    #popup p, #popup button {
    font-size: 0.95rem;
    }

    #popup {
    padding: 15px;
    }
}