/* Container for sliding messages */
.message-container {
    position: relative;
    z-index: 9999;
}

/* Individual message styling */
.message {
    background-color: #333;
    color: #fff;
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 4px;
    position: relative;
    animation: slide-in 0.5s ease-out;
    /* Hide message after animation ends */
    animation-fill-mode: forwards;
}

/* Close button styling */
.message .close-btn {
    position: absolute;
    top: 5px;
    right: 10px;
    color: #fff;
    cursor: pointer;
    font-size: 16px;
}

/* Slide-in animation */
@keyframes slide-in {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Optional: Slide-out animation on close */
@keyframes slide-out {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}