.toast-container {
    position: fixed;
    z-index: 9999;
    pointer-events: none;
    /* İçindeki toast dışında tıklama geçmesin */
}

.toast-container.top-right {
    top: 20px;
    right: 20px;
}

.toast-container.top-left {
    top: 20px;
    left: 20px;
}

.toast-container.top-center {
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
}

.toast-container.bottom-right {
    bottom: 20px;
    right: 20px;
}

.toast-container.bottom-left {
    bottom: 20px;
    left: 20px;
}

.toast-container.bottom-center {
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
}

/* Toast kutusu */
.toasts {
    pointer-events: auto;
    display: flex;
    align-items: center;
    background-color: #444;
    color: white;
    padding: 12px 18px;
    margin: 10px 0;
    border-radius: 6px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    font-family: Arial, sans-serif;
    min-width: 250px;
    max-width: 350px;
    user-select: none;
}

/* Türlere göre renkler ve icon renk */
.toasts.success {
    background-color: #34C759;
}

.toasts.error {
    background-color: #DA3B32;
}

.toasts.info {
    background-color: #2196f3;
}

.toasts.couponSuccess {
    background: linear-gradient(90deg, #5f6fff 0%, var(--text-main) 100%);
}

.toasts.couponError {
    background-color: #DA3B32;
}

.toasts.success .icon {
    color: #34C759;
}

.toasts.error .icon {
    color: #DA3B32;
}

.toasts.info .icon {
    color: #2196f3;
}

.toasts.couponSuccess .icon {
    color: var(--text-main);
}

.toasts.couponError .icon {
    color: #DA3B32;
}

/* Icon */
.toasts .icon {
    font-size: 25px;
    margin-right: 12px;
    width: 40px;
    height: 40px;
    background-color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Mesaj */
.toasts .message {
    flex: 1;
    font-size: 15px;
}

/* Kapatma butonu */
.toasts .close-btn {
    cursor: pointer;
    font-size: 18px;
    margin-left: 12px;
    user-select: none;
    font-weight: bold;
}

/* Animasyonlar */
@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100%);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideOutRight {
    from {
        opacity: 1;
        transform: translateX(0);
    }

    to {
        opacity: 0;
        transform: translateX(100%);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-100%);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideOutLeft {
    from {
        opacity: 1;
        transform: translateX(0);
    }

    to {
        opacity: 0;
        transform: translateX(-100%);
    }
}

@keyframes slideInTop {
    from {
        opacity: 0;
        transform: translateY(-100%);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideOutTop {
    from {
        opacity: 1;
        transform: translateY(0);
    }

    to {
        opacity: 0;
        transform: translateY(-100%);
    }
}

@keyframes slideInBottom {
    from {
        opacity: 0;
        transform: translateY(100%);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideOutBottom {
    from {
        opacity: 1;
        transform: translateY(0);
    }

    to {
        opacity: 0;
        transform: translateY(100%);
    }
}

.slide-in-right {
    animation: slideInRight 0.4s forwards;
}

.slide-out-right {
    animation: slideOutRight 0.4s forwards;
}

.slide-in-left {
    animation: slideInLeft 0.4s forwards;
}

.slide-out-left {
    animation: slideOutLeft 0.4s forwards;
}

.slide-in-top {
    animation: slideInTop 0.4s forwards;
}

.slide-out-top {
    animation: slideOutTop 0.4s forwards;
}

.slide-in-bottom {
    animation: slideInBottom 0.4s forwards;
}

.slide-out-bottom {
    animation: slideOutBottom 0.4s forwards;
}