.toast-container {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: auto;
    pointer-events: none;
    /* container'ın kendisi tıklanabilir olmasın */
}

.toast {
    min-width: 350px;
    max-width: 500px;
    padding: 18px 25px;
    border-radius: 8px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    animation: bounceIn 0.75s cubic-bezier(0.22, 0.61, 0.36, 1);
    margin-bottom: 15px;
    opacity: 0.97;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    pointer-events: auto;
    /* toast'lar tıklanabilir olsun */
}

.toast:hover {
    opacity: 1;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    transform: scale(1.03);
}

.toast.success {
    background-color: rgba(76, 175, 80, 0.97);
    color: white;
}

.toast.info {
    background-color: rgba(33, 150, 243, 0.97);
    color: white;
}

.toast.warning {
    background-color: rgba(255, 193, 7, 0.97);
    color: white;
    text-shadow: 0px 1px 2px rgba(0, 0, 0, 0.2);
}

.toast.danger {
    background-color: rgba(244, 67, 54, 0.97);
    color: white;
}

.toast.waiting {
    background-color: rgba(51, 51, 51, 0.97);
    color: white;
}

.toast-icon {
    margin-right: 15px;
    font-size: 26px;
    animation: pulseIcon 2s infinite;
}

@keyframes pulseIcon {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
    }
}

.toast-message {
    flex: 1;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.5;
}

.toast-close {
    margin-left: 15px;
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.2s;
    font-size: 16px;
}

.toast-close:hover {
    opacity: 1;
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }

    20% {
        transform: scale(1.1);
    }

    40% {
        transform: scale(0.9);
    }

    60% {
        opacity: 1;
        transform: scale(1.03);
    }

    80% {
        transform: scale(0.97);
    }

    100% {
        opacity: 0.97;
        transform: scale(1);
    }
}

@keyframes bounceOut {
    0% {
        opacity: 0.97;
        transform: scale(1);
    }

    20% {
        transform: scale(1.1);
    }

    100% {
        opacity: 0;
        transform: scale(0.3);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }

    to {
        opacity: 0.97;
        transform: scale(1);
    }
}

@keyframes fadeOut {
    from {
        opacity: 0.97;
        transform: scale(1);
    }

    to {
        opacity: 0;
        transform: scale(0.8);
    }
}