.messageerror-modal {
    position: fixed;
    top: 20%;
    left: 50%;
    transform: translateX(-50%);
    padding: 6px 8px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 10000;
    display: flex;
    align-items: center;
    gap: 8px;
    animation: fadeInOut 4s ease forwards;
    font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
}

@media (max-width: 768px) {
    .messageerror-modal {
        width: 90%;
        top: 20%;
    }
}

.messageerror-modal-col-left {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    width: 80%;
    gap: 4px;
}

.messageerror-modal-title {
    font-size: 1.1rem;
    font-weight: bold;
    color: #d32f2f;
}

.messageerror-modal-message {
    font-size: 1rem;
    color: #ffffff;
    margin-left: 8%;
}

.messageerror-modal-col-right {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    width: 20%;
    gap: 4px;
    padding: 0 8px;
}

.messageerror-modal-close {
    background: transparent;
    border: none;
    color: grey;
    font-size: 0.8rem;
    cursor: pointer;
    border-radius: 8px;
    padding: 4px 8px;
    background-color: rgba(128, 128, 128, 0.479);
    border: 1.5px solid grey;
    transition: color 0.2s, transform 0.2s;
    transform: scale(1);
    box-shadow: 0 2px 5px rgba(128, 128, 128, 0.5);
}

.messageerror-modal-close:hover {
    color: rgb(255, 255, 255);
    transform: scale(1.1);  
    border: none;
    background-color: blueviolet;
}

.messageerror-modal-action {
    border: none;
    font-weight: bold;
    cursor: pointer;
    border-radius: 8px;
    padding: 4px 8px;
    font-size: 0.8rem;
    width: 100%;
    background-color: rgba(211, 47, 47, 0.479);
    border: 1.5px solid #d32f2f;
    transition: color 0.2s, transform 0.2s;
    transform: scale(1);
    text-decoration: none;
    border-style: none;
    box-shadow: 0 2px 5px rgba(211, 47, 47, 0.5);
}

.messageerror-modal-action:hover {
    color: rgb(255, 255, 255);
    transform: scale(1.1);  
    background-color: #d32f2f;
    border: none;
}

@keyframes fadeInOut {
    0% { opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { opacity: 0; }
}