.flash-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 300px;
    z-index: 1000; /* Ensure it is above other elements */
}
.flash-message {
    background-color:#f94d6a;
    padding: 20px;
    margin-bottom: 15px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
    color: white;
    font-size: 16px;
    cursor: pointer;
    position: relative; /* Ensure the progress bar is positioned correctly */
    font-weight: bold;
}
.flash-message.success {
    background: linear-gradient(to right, #3bca6b, #2fd5b6);
}
.flash-message.error {
    background: linear-gradient(to right, #fa709a, #f94d6a);
}
.flash-message .progress-bar {
    margin-top: 10px;
    height: 5px;
    background: white;
    border-radius: 3px;
    overflow: hidden;
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
}
.flash-message .progress-bar > div {
    width: 100%;
    height: 100%;
    background: rgba(190, 4, 4, 0.8);
    animation: loading 20s linear;
}
.flash-message.success .progress-bar > div {
    background: rgba(0, 100, 0, 0.8); /* Dark green for success */
}
.flash-message.error .progress-bar > div {
    background: rgba(190, 4, 4, 0.8); /* Red for error */
}
@keyframes loading {
    0% { width: 100%; }
    100% { width: 0%; }
}