#snackbar-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

#snackbar {
    visibility: hidden;
    min-width: 250px;
    margin-left: -125px;
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 5px;
    position: fixed;
    z-index: 1000;
    right: 1rem;
    top: 30px;
    font-size: 16px;
    border-radius: 5px;
    transition: opacity 0.5s, transform 0.5s;
    opacity: 0;
    transform: translateY(20px); /* Hidden position */
}

#snackbar.success {
    background: #00cc00 !important;
}

#snackbar.error {
    background: #cd0808 !important;
}

#snackbar p {
    margin: 0;
    color: #ffffff;
}

#snackbar.show {
    visibility: visible;
    opacity: 1;
    transform: translateY(0); /* Visible position */
}


@-webkit-keyframes fadein {
    from {
        bottom: 0;
        opacity: 0;
    }
    to {
        bottom: 30px;
        opacity: 1;
    }
}

@keyframes fadein {
    from {
        bottom: 0;
        opacity: 0;
    }
    to {
        bottom: 30px;
        opacity: 1;
    }
}

@-webkit-keyframes fadeout {
    from {
        bottom: 30px;
        opacity: 1;
    }
    to {
        bottom: 0;
        opacity: 0;
    }
}

@keyframes fadeout {
    from {
        bottom: 30px;
        opacity: 1;
    }
    to {
        bottom: 0;
        opacity: 0;
    }
}
