
#di-custom-toast-container {
    position: fixed;
    z-index: 999999; 
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 20px;
    pointer-events: none; 
}

#di-custom-toast-container.pos-top-right {
    top: 0;
    right: 0;
    align-items: flex-end;
}

#di-custom-toast-container.pos-top-center {
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    align-items: center;
}

#di-custom-toast-container.pos-center {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); 
    align-items: center;
    justify-content: center;
}

#di-custom-toast-container.pos-bottom-center {
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    align-items: center;
}

#di-custom-toast-container.pos-top-left {
    top: 0;
    left: 0;
    align-items: flex-start;
}

/* --- ZÁKLADNÍ STYL TOASTU --- */
.di-custom-toast {
    display: flex;
    align-items: center;
    min-width: 320px;
    max-width: 450px;
    padding: 14px 18px;
    border-radius: 4px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.25);
    color: #ffffff;
    font-weight: 500;
    pointer-events: auto; 
    animation: diFadeInDown 0.3s ease-out forwards;
    position: relative;
    border-left: 5px solid rgba(0, 0, 0, 0.2); 
}

.di-custom-toast.toast-danger {
    background-color: #ce3933;
}

.di-custom-toast.toast-success {
    background-color: #4cae4c;
}

.di-custom-toast.toast-warning {
    background-color: #f0ad4e;
    color: #333; 
}
.di-custom-toast.toast-warning .di-toast-close {
    color: #333;
}

.di-custom-toast.toast-info {
    background-color: #5bc0de;
}

.di-custom-toast .material-icons {
    margin-right: 12px;
    font-size: 22px;
}

.di-custom-toast .toast-text {
    flex-grow: 1;
    line-height: 1.4;
    font-size: 14px;
}

.di-toast-close {
    margin-left: 10px;
    cursor: pointer;
    font-size: 18px !important;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.di-toast-close:hover {
    opacity: 1;
}

/* --- ANIMACE --- */
@keyframes diFadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}