/* style.css */

/* Estilo para o corpo da página quando o modal está aberto */
body.modal-open {
    overflow: hidden; /* Previne o scroll do fundo */
}

/* O Overlay (fundo escuro) */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 4;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease-in-out;
}

.modal-overlay.visible {
    opacity: 1;
    pointer-events: auto;
}

/* O Conteúdo do Modal */
.modal-content {
    background-color: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.2);
    width: 90%;
    max-width: 500px;
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s ease-in-out;
}

.modal-overlay.visible .modal-content {
    transform: scale(1);
}

/* Cabeçalho do Modal */
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 1rem;
    margin-bottom: 1rem;
}

.modal-title {
    font-size: 1.5rem;
    color: #333;
    margin: 0;
}

.modal-close-btn {
    background: none;
    border: none;
    font-size: 2.5rem;
    line-height: 1;
    cursor: pointer;
    color: #888;
    padding: 0;
}

.modal-close-btn:hover {
    color: #333;
}

/* Corpo e Rodapé */
.modal-body {
    margin-bottom: 1.5rem;
    line-height: 1.6;
    color: #555;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
}

/* Estilos genéricos para botões do modal (reutilize suas classes .btn se tiver) */
.modal-footer button {
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 0.2s ease;
}

.btn-primary-modal {
    background-color: #6a11cb; /* Roxo do Confirme.me */
    color: #fff;
    border-color: #6a11cb;
}
.btn-primary-modal:hover {
    background-color: #580ead;
}

.btn-secondary-modal {
    background-color: #f0f0f0;
    color: #333;
    border-color: #ccc;
}
.btn-secondary-modal:hover {
    background-color: #e0e0e0;
}