﻿/* ============================================
   OTORIA TOAST NOTIFICATION SYSTEM CSS
   Merkezi Toast Stilleri
   ============================================ */

/* Ana Toast Container - MAVİ GRİ VE KAYARAK */
.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 16px 20px;
    border-radius: 12px;
    color: white;
    font-weight: 600;
    z-index: 10060 !important; /* Modal'lardan yüksek */
    min-width: 280px;
    max-width: 400px;
    transform: translateX(calc(100% + 50px)); /* Başlangıçta sağa çık */
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94); /* Smooth kayma */
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 10px 30px rgba(71, 85, 105, 0.4);
    border-left: 4px solid #64748b;
    word-wrap: break-word;
    overflow-wrap: break-word;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    backdrop-filter: blur(10px);
}

    /* Görünür durumda - kayarak gelir */
    .toast.show {
        transform: translateX(0);
    }

/* Toast Türleri - MAVİ GRİ TEMA */
.toast-success {
    background: linear-gradient(135deg, #475569, #64748b);
    border-left-color: #94a3b8;
    box-shadow: 0 10px 30px rgba(71, 85, 105, 0.3);
}

.toast-error {
    background: linear-gradient(135deg, #64748b, #475569);
    border-left-color: #f87171;
    box-shadow: 0 10px 30px rgba(71, 85, 105, 0.3);
}

.toast-info {
    background: linear-gradient(135deg, #64748b, #94a3b8);
    border-left-color: #60a5fa;
    box-shadow: 0 10px 30px rgba(71, 85, 105, 0.3);
}

.toast-warning {
    background: linear-gradient(135deg, #64748b, #475569);
    border-left-color: #fbbf24;
    box-shadow: 0 10px 30px rgba(71, 85, 105, 0.3);
    color: #f8fafc !important;
}

/* Toast İçerik Elementleri */
.toast i {
    font-size: 1.2rem;
    flex-shrink: 0;
    min-width: 20px;
}

.toast .toast-content {
    flex: 1;
    min-width: 0;
}

.toast .toast-title {
    font-weight: 700;
    margin-bottom: 4px;
    font-size: 0.95rem;
    line-height: 1.2;
}

.toast .toast-message {
    font-size: 0.85rem;
    opacity: 0.95;
    line-height: 1.3;
    word-break: break-word;
}

/* Kapatma Butonu - MAVİ GRİ TEMA */
.toast .toast-close {
    background: none;
    border: none;
    color: #e2e8f0;
    font-size: 1.1rem;
    cursor: pointer;
    opacity: 0.8;
    transition: all 0.2s ease;
    padding: 4px;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    flex-shrink: 0;
}

    .toast .toast-close:hover {
        opacity: 1;
        background: rgba(226, 232, 240, 0.15);
        transform: scale(1.1);
        color: #f1f5f9;
    }

    .toast .toast-close:active {
        transform: scale(0.95);
    }

/* Çoklu Toast Desteği */
.toast + .toast {
    top: calc(20px + 80px); /* İkinci toast daha aşağıda */
}

    .toast + .toast + .toast {
        top: calc(20px + 160px); /* Üçüncü toast daha da aşağıda */
    }

/* Responsive Tasarım - KAYARAK */
@media (max-width: 768px) {
    .toast {
        top: 20px;
        left: 15px;
        right: 15px;
        min-width: auto;
        max-width: none;
        width: auto;
        transform: translateY(-100px); /* Mobilde yukarıdan kayar */
    }

        .toast.show {
            transform: translateY(0);
        }
}

@media (max-width: 480px) {
    .toast {
        top: 15px;
        left: 10px;
        right: 10px;
        padding: 12px 16px;
        gap: 10px;
        transform: translateY(-100px);
    }

        .toast.show {
            transform: translateY(0);
        }

        .toast .toast-title {
            font-size: 0.9rem;
        }

        .toast .toast-message {
            font-size: 0.8rem;
        }

        .toast i {
            font-size: 1.1rem;
        }
}

/* Özel Animasyonlar */
@keyframes toastSlideIn {
    from {
        transform: translateX(calc(100% + 30px));
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes toastSlideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }

    to {
        transform: translateX(calc(100% + 30px));
        opacity: 0;
    }
}

/* Yüksek kontrast modu desteği */
@media (prefers-contrast: high) {
    .toast {
        border: 2px solid white;
        font-weight: 700;
    }
}

/* Reduced motion desteği */
@media (prefers-reduced-motion: reduce) {
    .toast {
        transition: opacity 0.2s ease;
        transform: translateX(0) !important;
    }

        .toast:not(.show) {
            opacity: 0;
        }

        .toast.show {
            opacity: 1;
        }
}
/* Ana Toast Container - !IMPORTANT EKLENDİ */
.neviraToast {
    position: fixed !important;
    top: 20px !important;
    right: 20px !important;
    padding: 16px 20px !important;
    border-radius: 12px !important;
    color: white !important;
    font-weight: 600 !important;
    z-index: 10060 !important;
    min-width: 280px !important;
    max-width: 400px !important;
    transform: translateX(calc(100% + 50px)) !important;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    box-shadow: 0 10px 30px rgba(71, 85, 105, 0.4) !important;
    border-left: 4px solid #64748b !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    backdrop-filter: blur(10px) !important;
}

    .neviraToast.neviraToast-show {
        transform: translateX(0) !important;
    }

/* Toast Türleri */
.neviraToast-success {
    background: linear-gradient(135deg, #475569, #64748b) !important;
    border-left-color: #94a3b8 !important;
    box-shadow: 0 10px 30px rgba(71, 85, 105, 0.3) !important;
}

.neviraToast-error {
    background: linear-gradient(135deg, #64748b, #475569) !important;
    border-left-color: #f87171 !important;
    box-shadow: 0 10px 30px rgba(71, 85, 105, 0.3) !important;
}

.neviraToast-info {
    background: linear-gradient(135deg, #64748b, #94a3b8) !important;
    border-left-color: #60a5fa !important;
    box-shadow: 0 10px 30px rgba(71, 85, 105, 0.3) !important;
}

.neviraToast-warning {
    background: linear-gradient(135deg, #64748b, #475569) !important;
    border-left-color: #fbbf24 !important;
    box-shadow: 0 10px 30px rgba(71, 85, 105, 0.3) !important;
    color: #f8fafc !important;
}

/* İçerik */
.neviraToast i {
    font-size: 1.2rem !important;
    flex-shrink: 0 !important;
    min-width: 20px !important;
}

.neviraToast .neviraToast-content {
    flex: 1 !important;
    min-width: 0 !important;
}

.neviraToast .neviraToast-title {
    font-weight: 700 !important;
    margin-bottom: 4px !important;
    font-size: 0.95rem !important;
    line-height: 1.2 !important;
}

.neviraToast .neviraToast-message {
    font-size: 0.85rem !important;
    opacity: 0.95 !important;
    line-height: 1.3 !important;
    word-break: break-word !important;
}

/* Kapatma Butonu */
.neviraToast .neviraToast-close {
    background: none !important;
    border: none !important;
    color: #e2e8f0 !important;
    font-size: 1.1rem !important;
    cursor: pointer !important;
    opacity: 0.8 !important;
    transition: all 0.2s ease !important;
    padding: 4px !important;
    width: 24px !important;
    height: 24px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 4px !important;
    flex-shrink: 0 !important;
}

    .neviraToast .neviraToast-close:hover {
        opacity: 1 !important;
        background: rgba(226, 232, 240, 0.15) !important;
        transform: scale(1.1) !important;
        color: #f1f5f9 !important;
    }

/* Responsive */
@media (max-width: 768px) {
    .neviraToast {
        top: 20px !important;
        left: 15px !important;
        right: 15px !important;
        min-width: auto !important;
        max-width: none !important;
        width: auto !important;
        transform: translateY(-100px) !important;
    }

        .neviraToast.neviraToast-show {
            transform: translateY(0) !important;
        }
}

@media (max-width: 480px) {
    .neviraToast {
        top: 15px !important;
        left: 10px !important;
        right: 10px !important;
        padding: 12px 16px !important;
        gap: 10px !important;
        transform: translateY(-100px) !important;
    }

        .neviraToast.neviraToast-show {
            transform: translateY(0) !important;
        }

        .neviraToast .neviraToast-title {
            font-size: 0.9rem !important;
        }

        .neviraToast .neviraToast-message {
            font-size: 0.8rem !important;
        }

        .neviraToast i {
            font-size: 1.1rem !important;
        }
}