:root {
    --notification-background: #313e2c;
    --notification-primary: #8b8bda;
    --background: #0d110e;
    --notification-info-bg: #1a1a2e;
}

.container {
    position: fixed;
    top: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    z-index: 9999;
}

.notification--success {
    --bg: #4bb543;
    --primary: #ffffff;
}

.notification--failure {
    --bg: #371818;
    --primary: #ff4d4d;
}

.notification--warning {
    --bg: #fbbd09;
    --primary: #000000;
    
}

.notification {
    min-width: 22rem;
    padding: 1rem;
    border-radius: 0.375rem;
    background: var(--bg);
    color: var(--primary);
    box-shadow: 0 1px 10px rgba(0, 0, 0, 0.1);
    animation: fade-in 3s linear;
}

.notification-body {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.notification-icon {
    width: 20px;
    height: 20px;
    display: inline-block;
    border-radius: 50%;
    background-color: var(--primary);
    display: flex;
    justify-content: center;
    align-items: center;
}

.notification-icon--success {
    background-color: #4bb543;
    content: "✔";
    font-size: 16px;
}

.notification-icon--failure {
    background-color: #ff4d4d;
    content: "✖";
    font-size: 16px;
}

.notification-icon--warning {
    background-color: #fbbd09;
    content: "⚠️";
    font-size: 16px;
}

.notification-progress {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 3px;
    background: var(--primary);
    opacity: 0.5;
    animation: progress 3s linear;
}

@keyframes fade-in {
    0% {
        transform: translateY(1.875rem);
        opacity: 0;
        visibility: hidden;
    }

    10% {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    90% {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    100% {
        transform: translateY(-1.875rem);
        opacity: 0;
        visibility: hidden;
    }
}

@keyframes progress {
    from {
        width: 100%;
    }

    to {
        width: 0%;
    }
}