/**
 * Toast Component Styles
 *
 * Custom styles for toast notifications.
 * Extends Bootstrap 5 toast component.
 */

/* Toast container positioning */
#toast-container {
    z-index: 1090; /* Above modals (1055) but below tooltips (1100) */
    max-width: 400px;
}

/* Toast shadow and animation */
.toast {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(10px);
}

/* Toast header styling */
.toast-header {
    border-bottom: none;
    font-weight: 600;
}

/* Toast body */
.toast-body {
    padding: 1rem;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Icon sizing */
.toast-header .bi {
    font-size: 1.2rem;
}

/* Close button */
.toast-header .btn-close-white {
    opacity: 0.8;
}

.toast-header .btn-close-white:hover {
    opacity: 1;
}

/* Responsive adjustments */
@media (max-width: 576px) {
    #toast-container {
        left: 0.75rem;
        right: 0.75rem;
        max-width: none;
    }

    .toast {
        width: 100%;
    }
}

/* Toast enter animation */
@keyframes toastSlideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.toast.showing {
    animation: toastSlideIn 0.3s ease-out;
}

/* Toast exit animation */
@keyframes toastSlideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

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

/* Accessibility: High contrast mode support */
@media (prefers-contrast: high) {
    .toast {
        border: 2px solid currentColor;
    }
}

/* Accessibility: Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .toast.showing,
    .toast.hide {
        animation: none;
        transition: none;
    }
}
