@keyframes borderGrow {
    0% {
        width: 0%;
        opacity: 0.5;
    }
    100% {
        width: 100%;
        opacity: 1;
    }
}

@keyframes fadeInIcon {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.notification-bar {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    width: 90%;
    max-width: 400px;
    opacity: 0;
    display: flex;
    align-items: center;
    padding: 12px 16px;
    border-left: 6px solid transparent;
}

.notification-bar.show {
    animation: borderGrow 0.6s ease-out forwards;
    opacity: 1;
}

.notification-bar.success {
    border-left-color: #22c55e;
    color: #22c55e;
}

.notification-bar.error {
    border-left-color: #ef4444;
    color: #ef4444;
}
.notification-bar.success .notification-icon {
    color: #22c55e;
}

.notification-bar.error .notification-icon {
    color: #ef4444;
}
.notification-icon {
    margin-right: 12px;
    font-size: 1.4rem;
    opacity: 0;
    animation: fadeInIcon 0.6s ease-in forwards;
    animation-delay: 0.6s;
}
