.modal {
    display: none;
    position: fixed;
    z-index: 1050;
    padding-top: 100px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4);
}

.modal-content {
    background-color: #fefefe;
    margin: auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 500px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    border-radius: 5px;
    text-align: center;
    position: relative;
    animation: modal-show 0.5s ease-out;
}

@keyframes modal-show {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-header,
.modal-footer {
    padding: 10px;
}

.modal-header {
    border-bottom: 1px solid #e5e5e5;
    font-size: 1.25rem;
}

.modal-footer {
    border-top: 1px solid #e5e5e5;
}

.modal-footer button {
    padding: 10px 20px;
    font-size: 1rem;
}

.success-icon, .error-icon {
    font-size: 4rem;
    margin-bottom: 20px;
}

.success-icon {
    color: #4CAF50;
    animation: success-animation 0.5s ease-in-out forwards;
}

@keyframes success-animation {
    from {
        transform: scale(0);
    }
    to {
        transform: scale(1);
    }
}

.error-icon {
    color: #f44336;
    animation: error-animation 0.5s ease-in-out forwards;
}

@keyframes error-animation {
    from {
        transform: scale(0);
    }
    to {
        transform: scale(1);
    }
}
