/* Container for notifications */
.notification-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    flex-direction: column-reverse; /* Newest notification at the bottom */
    gap: 10px;
    z-index: 1000;
}

/* Notification popup */
.notification {
    position: relative;
    width: 300px;
    padding: 15px;
    border-radius: 8px;
    color: white;
    font-size: 16px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
    opacity: 1;
    transition: opacity 0.5s ease-out;
    overflow: hidden;
}

/* Success & Error colors */
.success { background-color: #28a745; } /* Green */
.error { background-color: #dc3545; } /* Red */

/* Close button */
.close-btn {
    position: absolute;
    top: 8px;
    right: 10px;
    cursor: pointer;
    font-size: 18px;
    color: white;
}

.close-btn:hover {
    opacity: 0.7;
}

/* Progress bar */
.progress-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background-color: rgba(255, 255, 255, 0.6);
    transition: width linear;
}