.toast {
    position: absolute; /* Change to absolute */
    background-color: #EF373E; 
    color: white;
    border-radius: 5px;
    padding: 15px 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    display: none; /* Hidden by default */
    z-index: 1000;
    transition: opacity 0.5s ease-in-out;
    max-width: 80%; /* Set a max width to prevent stretching */
    word-wrap: break-word; /* Break long words to fit */
}

.toast-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 16px;
    cursor: pointer;
    padding-left: 15px;
}

.toast.show {
    display: flex; /* Show when added to class */
    opacity: 1;
}

.toast.hide {
    opacity: 0;
}