/**
 * Unified Toast Notification Styles
 * Works with Bootstrap 5 toast component
 */

/* Toast Container */
.toast-container {
    z-index: 9999;
    pointer-events: none;
}

.toast-container .toast {
    pointer-events: auto;
    min-width: 300px;
    max-width: 400px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    animation: toastSlideIn 0.3s ease-out;
}

/* Toast Animations */
@keyframes toastSlideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.toast-container.position-fixed[style*="top"] .toast {
    animation: toastSlideDown 0.3s ease-out;
}

@keyframes toastSlideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Toast Body */
.toast-body {
    font-size: 0.95rem;
    line-height: 1.5;
    padding: 0.75rem 1rem;
}

.toast-body i {
    font-size: 1.1rem;
    flex-shrink: 0;
}

/* Toast Close Button */
.toast .btn-close {
    opacity: 0.8;
    transition: opacity 0.2s ease;
}

.toast .btn-close:hover {
    opacity: 1;
}

/* Toast Types - Enhanced Colors */
.toast.bg-success {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%) !important;
    border-left: 4px solid #155724;
}

.toast.bg-danger {
    background: linear-gradient(135deg, #dc3545 0%, #e83e8c 100%) !important;
    border-left: 4px solid #721c24;
}

.toast.bg-warning {
    background: linear-gradient(135deg, #ffc107 0%, #fd7e14 100%) !important;
    border-left: 4px solid #856404;
}

.toast.bg-info {
    background: linear-gradient(135deg, #17a2b8 0%, #007bff 100%) !important;
    border-left: 4px solid #004085;
}

/* Responsive */
@media (max-width: 576px) {
    .toast-container {
        left: 10px !important;
        right: 10px !important;
        padding: 10px !important;
    }
    
    .toast-container .toast {
        min-width: auto;
        max-width: 100%;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .toast {
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    }
}

/* RTL Support */
[dir="rtl"] .toast-container {
    left: auto;
    right: 0;
}

[dir="rtl"] .toast-container .toast {
    animation: toastSlideInRTL 0.3s ease-out;
}

@keyframes toastSlideInRTL {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

