/**
 * Toast Notification Styles
 *
 * Complements Bootstrap 5 Toast component with custom styling
 *
 * @version 1.0.0
 * @date 2025-12-29
 */

/* Container */
#toast-container {
    z-index: 9999;
    pointer-events: none;
    max-width: 350px;
}

#toast-container .toast {
    pointer-events: auto;
    min-width: 300px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    margin-bottom: 0.75rem;
    animation: slideIn 0.3s ease-out;
}

/* Slide-in animation */
@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Toast body */
.toast-body {
    font-size: 0.95rem;
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.toast-body .toast-icon {
    font-size: 1.25rem;
    font-weight: bold;
    margin-right: 0.25rem;
}

/* Color variants */
.toast.bg-success {
    background-color: #28a745 !important;
}

.toast.bg-danger {
    background-color: #dc3545 !important;
}

.toast.bg-warning {
    background-color: #ffc107 !important;
    color: #212529 !important;
}

.toast.bg-warning .btn-close {
    filter: none;
}

.toast.bg-warning .toast-body {
    color: #212529;
}

.toast.bg-info {
    background-color: #17a2b8 !important;
}

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

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

/* Mobile responsive */
@media (max-width: 576px) {
    #toast-container {
        left: 0;
        right: 0;
        top: auto;
        bottom: 0;
        max-width: 100%;
        padding: 0.5rem !important;
    }

    #toast-container .toast {
        min-width: auto;
        width: 100%;
        border-radius: 0;
        margin-bottom: 0;
    }
}
