@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600&display=swap');

.notifications {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding: 15px;
    z-index: 99999;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    pointer-events: none;
}

.toast {
    position: relative;
    width: 100%;
    max-width: 500px;
    padding: 12px 16px;
    color: #fff;
    margin: 5px 0;
    border-radius: 6px;
    --color: #0abf30;
    background: linear-gradient(to right, #0abf31ed, #22242f 20%);
    display: grid;
    grid-template-columns: 50px 1fr 30px;
    align-items: center;
    box-sizing: border-box;
    animation: show 0.3s ease 1 forwards;
    pointer-events: auto;
}

.toast.error {
    --color: #f24d4c;
    background: linear-gradient(to right, #aa0505dd, #22242f 20%);
}

.toast.warning {
    --color: #e9bd0c;
    background: linear-gradient(to right, #eec222df, #22242f 20%);
}

.toast.info {
    --color: #3498db;
    background: linear-gradient(to right, #3498dbe9, #22242f 20%);
}

.toast i {
    color: var(--color);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: x-large;
}

.toast .title {
    font-size: x-large;
    font-weight: bold;
}

.toast span, .toast i:nth-child(3) {
    color: #fff;
    opacity: 0.6;
}

.toast::before {
    position: absolute;
    bottom: 0;
    left: 0;
    background-color: var(--color);
    width: 100%;
    height: 3px;
    content: '';
    box-shadow: 0 0 10px var(--color);
    animation: timeOut 5s linear 1 forwards;
}

@keyframes show {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(0); }
}

@keyframes timeOut {
    to { width: 0; }
}


@media (max-width: 480px) {
    .toast {
        font-size: 0.85rem;
        grid-template-columns: 40px 1fr 25px;
    }
}
