.messages-container {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 9999;
    max-width: 350px;
    width: 100%;
}

.animated-alert {
    margin-bottom: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-left: 4px solid;
    border-radius: 4px;
    opacity: 0;
    transform: translateX(50px);
    animation: slide-in 0.3s forwards;
    position: relative;
}

.alert-success {
    border-left-color: #198754;
    background-color: #d1e7dd;
    color: #0f5132;
}

.alert-info {
    border-left-color: #0dcaf0;
    background-color: #cff4fc;
    color: #055160;
}

.alert-warning {
    border-left-color: #ffc107;
    background-color: #fff3cd;
    color: #664d03;
}

.alert-danger, .alert-error {
    border-left-color: #dc3545;
    background-color: #f8d7da;
    color: #842029;
}

.alert-success i {
    color: #198754;
}

.alert-info i {
    color: #0dcaf0;
}

.alert-warning i {
    color: #ffc107;
}

.alert-danger i, .alert-error i {
    color: #dc3545;
}

.animated-alert .btn-close {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    right: 10px;
    opacity: 0.7;
}

.animated-alert .btn-close:hover {
    opacity: 1;
}

@keyframes slide-in {
    0% {
        opacity: 0;
        transform: translateX(50px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fade-out {
    0% {
        opacity: 1;
        transform: translateX(0);
    }
    100% {
        opacity: 0;
        transform: translateX(50px);
    }
}
