/* Toast Notification Styles */
.toast-container {
    max-width: 350px;
    z-index: 1055;
}

.toast {
    background: #fff;
    border: 1px solid rgba(0,0,0,.125);
    border-radius: 0.375rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    margin-bottom: 0.5rem;
}

.toast-header {
    background: #f8f9fa;
    border-bottom: 1px solid rgba(0,0,0,.125);
    border-radius: 0.375rem 0.375rem 0 0;
    padding: 0.5rem 0.75rem;
}

.toast-icon {
    font-size: 1.1rem;
    margin-right: 0.5rem; /* Thêm space giữa icon và title */
}

.toast-icon.success {
    color: #198754;
}

.toast-icon.error {
    color: #dc3545;
}

.toast-icon.warning {
    color: #ffc107;
}

.toast-icon.info {
    color: #0dcaf0;
}

.toast-title {
    font-size: 0.875rem;
    font-weight: 600;
    margin-left: 0; /* Đảm bảo title không có margin-left để space từ icon hoạt động */
}

.toast-time {
    color: #6c757d;
    font-size: 0.75rem;
}

.toast-body {
    padding: 0.75rem;
    font-size: 0.875rem;
    line-height: 1.4;
}

.toast.show {
    opacity: 1;
}

.toast.hide {
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

/* Animation for toast appearance */
@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.toast.show {
    animation: slideInRight 0.3s ease-out;
}

/* Auto-hide animation */
@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

.toast.fade-out {
    animation: fadeOut 0.3s ease-in-out;
}

/* Toast template hidden by default */
#toastTemplate {
    display: none !important;
}

