I've been struggling with CSS as a beginner and I can't seem to get my icon and input box aligned to the right inside my header. Here's what it currently looks like: https://i.sstatic.net/dmJVD.png
Here is the HTML for my header:
<div class="toolbar" role="banner">
<a routerLink="/cookbook" routerLinkActive="active">Cookbook</a>
<a routerLink="/cookbook/create-recipe/-1" routerLinkActive="active">Add Recipe</a>
<a routerLink="/cookbook/find-recipe" routerLinkActive="active">Find Recipe</a>
<mat-icon class="icon" >search</mat-icon>
<input class="search" matInput placeholder="Search">
</div>
Could someone please guide me on how to align them to the right without overlapping?