.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background-color: #fff;
    color: #333;
    padding: 20px 30px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 10000000 !important;
    opacity: 0;
    transform: translateY(-20px);
    animation: fadeInDown 0.5s forwards;
    font-size: 16px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    max-width: 400px;
    overflow: hidden;
    display: flex; /* Flex to align icon and text */
    align-items: center; /* Center icon and text vertically */
    gap: 15px; /* Space between icon and text */
}

.notification.success {
    border-left: 6px solid #28a745;
}

.notification.error {
    border-left: 6px solid #dc3545;
}

.notification.info {
    border-left: 6px solid #17a2b8;
}

.notification.warning {
    border-left: 6px solid #ffc107;
}

.notification .icon {
    font-size: 24px; /* Icon size */
}

.notification.success .icon {
    color: #28a745;
}

.notification.error .icon {
    color: #dc3545;
}

.notification.info .icon {
    color: #17a2b8;
}

.notification.warning .icon {
    color: #ffc107;
}

/* Progress bar styling */
.notification .progress-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 4px;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.1);
}

.notification.success .progress-bar .progress {
    background-color: #28a745;
}

.notification.error .progress-bar .progress {
    background-color: #dc3545;
}

.notification.info .progress-bar .progress {
    background-color: #17a2b8;
}

.notification.warning .progress-bar .progress {
    background-color: #ffc107;
}

.notification .progress-bar .progress {
    height: 100%;
    animation: progressTimer 5s linear forwards;
}

@keyframes fadeInDown {
    0% {
        opacity: 0;
        transform: translateY(-20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes progressTimer {
    0% {
        width: 100%;
    }
    100% {
        width: 0%;
    }
}
