/* Estilos para o Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(3px);
}

.modal-content {
    position: relative;
    background-color: #fff;
    margin: 10% auto;
    padding: 40px 30px;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    width: 90%;
    max-width: 500px;
    text-align: center;
    transform: translateY(-20px);
    transition: transform 0.3s ease-out;
}

.modal-success {
    border-top: 5px solid #28a745;
    border-left: 1px solid #e9f5e9;
    border-right: 1px solid #e9f5e9;
    border-bottom: 1px solid #e9f5e9;
}

.modal-error {
    border-top: 5px solid #dc3545;
    border-left: 1px solid #faeaec;
    border-right: 1px solid #faeaec;
    border-bottom: 1px solid #faeaec;
}

.modal-icon {
    font-size: 64px;
    margin-bottom: 25px;
    animation: iconPulse 1s ease-in-out;
}

.modal-success .modal-icon {
    color: #28a745;
}

.modal-error .modal-icon {
    color: #dc3545;
}

@keyframes iconPulse {
    0% { transform: scale(0.5); opacity: 0; }
    70% { transform: scale(1.1); opacity: 1; }
    100% { transform: scale(1); opacity: 1; }
}

.modal-title {
    margin-bottom: 15px;
    font-size: 26px;
    font-weight: 700;
    font-family: 'Montserrat', sans-serif;
}

.modal-message {
    margin-bottom: 30px;
    font-size: 16px;
    line-height: 1.6;
    color: #555;
    font-family: 'Open Sans', sans-serif;
}

.modal-button {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    font-family: 'Montserrat', sans-serif;
}

.modal-button:hover {
    background-color: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.modal-button:active {
    transform: translateY(0);
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
    color: #aaa;
    cursor: pointer;
    border-radius: 50%;
    transition: all 0.2s ease;
}

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

/* Animação do modal */
@keyframes modalFadeIn {
    from {opacity: 0; transform: translateY(20px);}
    to {opacity: 1; transform: translateY(0);}
}

.modal.show {
    display: block;
}

.modal.show .modal-content {
    animation: modalFadeIn 0.4s ease-out forwards;
    transform: translateY(0);
}

/* Responsividade */
@media (max-width: 768px) {
    .modal-content {
        width: 90%;
        margin: 20% auto;
        padding: 30px 20px;
    }
    
    .modal-icon {
        font-size: 56px;
        margin-bottom: 20px;
    }
    
    .modal-title {
        font-size: 22px;
    }
    
    .modal-message {
        font-size: 15px;
        margin-bottom: 25px;
    }
}

@media (max-width: 480px) {
    .modal-content {
        width: 95%;
        margin: 15% auto;
        padding: 25px 15px;
    }
    
    .modal-icon {
        font-size: 48px;
    }
    
    .modal-title {
        font-size: 20px;
    }
    
    .modal-button {
        padding: 10px 25px;
        font-size: 15px;
    }
}
