/**
 * Toast Notification Styles
 * Dark theme uyumlu özelleştirmeler
 */

/* Toast container positioning */
#globalToastContainer {
    z-index: 9999;
    max-width: 400px;
}

/* Toast genel stil */
.toast {
    min-width: 300px;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(10px);
}

/* Dark theme için özel stiller */
[data-bs-theme="dark"] .toast {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.5);
}

/* Toast body padding */
.toast-body {
    padding: 0.75rem 1rem;
}

/* Icon boyutları */
.toast-body i {
    font-size: 1.25rem;
}

/* Animasyon iyileştirmeleri */
.toast.showing {
    animation: slideInRight 0.3s ease-out;
}

.toast.hide {
    animation: slideOutRight 0.3s ease-in;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* Responsive */
@media (max-width: 576px) {
    #globalToastContainer {
        left: 0.5rem;
        right: 0.5rem;
        max-width: none;
    }
    
    .toast {
        min-width: auto;
        width: 100%;
    }
}

/* Toast renk özelleştirmeleri - Dark theme için daha yumuşak renkler */
[data-bs-theme="dark"] .text-bg-success {
    background-color: rgba(25, 135, 84, 0.9) !important;
}

[data-bs-theme="dark"] .text-bg-danger {
    background-color: rgba(220, 53, 69, 0.9) !important;
}

[data-bs-theme="dark"] .text-bg-warning {
    background-color: rgba(255, 193, 7, 0.9) !important;
    color: #000 !important;
}

[data-bs-theme="dark"] .text-bg-info {
    background-color: rgba(13, 202, 240, 0.9) !important;
}

[data-bs-theme="dark"] .text-bg-primary {
    background-color: rgba(13, 110, 253, 0.9) !important;
}

/* Warning için close button siyah */
.text-bg-warning .btn-close {
    filter: invert(1) grayscale(100%) brightness(200%);
}
