.notifikace {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40%;  /* Šířka notifikace pro desktop */
    z-index: 9999;
}

.notifikace-toast {
    position: relative;
    padding: 10px;
    color: #fff;
    margin-bottom: 10px;
    width: 100%;
    display: grid;
    grid-template-columns: 70px 1fr 70px;
    border-radius: 5px;
    --color: #0abf30;
    background-image: linear-gradient(to right, #0abf30, #22242f 15%);
    animation: show 0.5s ease 1 forwards, fadeOut 0s linear 4s forwards; /* Časování pro fadeOut */
}

.notifikace-toast i {
    color: var(--color);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: xxx-large;
}

.notifikace-toast .title {
    font-size: x-large;
    font-weight: bold;
}

.notifikace-toast span, .notifikace-toast i:nth-child(3) {
    color: #fff;
    opacity: 1;
}

@keyframes show {
    0% {
        transform: translateY(100%);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes fadeOut {
    0% {
        opacity: 1;
        transform: translateY(0);
    }
    100% {
        opacity: 0;
        transform: translateY(-20px);
    }
}



.notifikace-toast.error {
    --color: #f24d4c;
    background-image: linear-gradient(to right, #f24d4c, #22242F 15%);
}

.notifikace-toast.warning {
    --color: #e9bd0c;
    background-image: linear-gradient(to right, #e9bd0c, #22242F 15%);
}

.notifikace-toast.info {
    --color: #3498db;
    background-image: linear-gradient(to right, #3498db, #22242F 15%);
}

/* Responsivní úpravy pro mobilní zařízení */
@media screen and (max-width: 768px) {
    .notifikace {
        width: 90%; /* Šířka pro mobilní zařízení */
    }

    .notifikace-toast {
        grid-template-columns: 50px 1fr 50px; /* Zmenšení ikon pro mobil */
        padding: 8px;
    }

    .notifikace-toast i {
        font-size: 2.5rem; /* Menší ikony pro mobil */
    }

    .notifikace-toast .title {
        font-size: large; /* Mírné zmenšení textu pro mobil */
    }
}
