﻿/* Toast Notification Stili */
.toast-notification {
    position: fixed;
    top: 20px; /* Ekranın üstünden biraz boşluk */
    left: 50%;
    transform: translateX(-50%);
    min-width: 300px;
    max-width: 450px;
    border-radius: 6px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

    .toast-notification.show {
        opacity: 1;
        visibility: visible;
    }

    .toast-notification.success {
        background-color: #fff;
        border-left: 5px solid #2ecc71;
    }

    .toast-notification.error {
        background-color: #fff;
        border-left: 5px solid #e74c3c;
    }

.toast-content {
    display: flex;
    align-items: center;
    padding: 15px;
}

.toast-icon {
    margin-right: 15px;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.toast-notification.success .toast-icon {
    color: #2ecc71;
}

.toast-notification.error .toast-icon {
    color: #e74c3c;
}

.toast-message {
    font-size: 14px;
    color: #333;
    flex-grow: 1;
}

.toast-close {
    margin-left: 15px;
    cursor: pointer;
    font-size: 16px;
    color: #999;
    transition: color 0.2s ease;
}

    .toast-close:hover {
        color: #333;
    }

/* Toast İlerleme Çubuğu */
.toast-notification::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.1);
}

.toast-notification.success::after {
    background-color: #2ecc71;
}

.toast-notification.error::after {
    background-color: #e74c3c;
}

.toast-notification.countdown::after {
    width: 100%;
    animation: toast-countdown 5s linear forwards;
}

@keyframes toast-countdown {
    from {
        width: 100%;
    }

    to {
        width: 0%;
    }
}

/* Responsive Düzenlemeler */
@media (max-width: 768px) {
    .toast-notification {
        min-width: 250px;
        max-width: 90%;
    }
}

@media (max-width: 480px) {
    .toast-notification {
        max-width: 95%;
    }

    .toast-content {
        padding: 10px;
    }

    .toast-icon {
        font-size: 18px;
    }

    .toast-message {
        font-size: 13px;
    }
}
