.navbar {
	height: $navbar-height;
	background: var(--navbar-bg);
	border-bottom: 1px solid var(--border-color);
	padding: 0;
	.navbar-brand {
		margin-right: 0px;
	}

	@include media-breakpoint-up(md) {
		.navbar-brand {
			// not shown for full screen
			display: none;
		}
	}

	.navbar-nav {
		.dropdown-item {
			padding: 6px 8px !important;
		}

		.nav-link {
			padding: 0;
		}
	}
	.container {
		padding: 0 1rem;
	}
	.vertical-bar {
		border-right: 1px solid var(--dark-border-color);
		height: 24px;
		margin: auto;
		margin-left: var(--margin-md);
	}
	.nav-item {
		margin: auto;
		margin-left: var(--margin-md);
		@include get_textstyle("sm", "regular");
		line-height: 1rem;
	}
}

.navbar-home {
	img {
		height: 32px;
		width: 32px;
	}
}

.search-bar {
	max-width: 300px;
	svg {
		stroke: var(--icon-stroke);
		margin-bottom: 2px;
	}
	.awesomplete {
		width: 100%;
		--awesomebar-shadow: var(--shadow-2xl);
		input {
			width: 100% !important;
			padding-left: 36px;
			height: 28px;
			@include get_textstyle("sm", "regular");
		}
		input:focus {
			border-bottom-left-radius: 0;
			border-bottom-right-radius: 0;
			box-shadow: var(--awesomebar-shadow);
			background-color: var(--awesomebar-focus-bg);
		}
		ul {
			border: none;
			border-top: 1px solid var(--border-color);
			border-radius: 0 0 var(--border-radius) var(--border-radius);
			box-shadow: var(--awesomebar-shadow);
		}
		input::placeholder {
			color: var(--text-light);
		}
	}
	.search-icon {
		background-color: var(--control-bg);
		border-radius: 8px;
		padding: 6px;
	}
}

.navbar-modal-wrapper {
	#navbar-search {
		display: flex;
	}

	.awesomplete {
		width: 100%;
		ul {
			position: relative;
			background-color: transparent;
			border: none;
			border-radius: unset;
			box-shadow: none;
			margin-top: 12px;
		}
		ul[hidden] {
			display: block !important;
		}
	}

	.modal-divider {
		width: 100%;
		height: 1px;
		background-color: var(--border-color);
		position: absolute;
		top: 40px;
		left: 0px;
		border-radius: 50%;
	}
}

.cool-awesomebar-modal-footer {
	padding: 10px !important;
}

.awesomebar-modal-footer {
	font-size: 12px;
	.help-navigation {
		display: flex;
		gap: var(--margin-md);
		.help-item-navigate {
			display: flex;
			gap: var(--margin-xs);
			align-items: center;
		}
		.help-item {
			background-color: var(--border-color);
			padding: 3px;
			display: flex;
			font-size: x-small;
			border-radius: 4px;
		}
		.help-item-escape {
			padding: 2px 4px;
			display: inline-flex;
		}
	}
}

.navbar.bg-dark {
	.dropdown-menu {
		font-size: 0.75rem;
		background-color: $dark;
		border-radius: 0;
	}

	.nav-link {
		white-space: nowrap;
		color: $light;

		&:hover {
			color: $primary;
		}
	}

	.nav-item {
		padding: 0rem 1rem;
		@extend .my-auto;
	}
}
