aside#leftbar {
	width: 70px;
	background: #191919;
	position: fixed;
	top: 0px;
	left: 0px;
	height: 100vh;
	display: flex;
	justify-content: flex-start;
	align-items: stretch;
	flex-direction: column;
	gap: 1rem;
	z-index: 10010;
}

aside#leftbar section#left-brand {
	padding: 20px 15px;
}

aside#leftbar section#left-brand img {
	width: 100%;
}

aside#leftbar section#left-menu {
	display: flex;
	justify-content: flex-start;
	align-items: stretch;
	flex-direction: column;
}

aside#leftbar section#left-menu ul {
	margin: 0px;
	width: 100%;
	padding: 0px;
	display: flex;
	justify-content: center;
	align-items: center;
	flex-direction: column;
	gap: 8px;
	list-style: none;
}

aside#leftbar section#left-menu ul li {
	background: transparent;
	border-radius: 15px;
	color: #ffffff;
	position: relative;

	width: 40px;
	height: 40px;

	display: flex;
	justify-content: center;
	align-items: center;

	transition: all 400ms;
	cursor: pointer;
}

aside#leftbar section#left-menu ul li a {
	display: flex;
	justify-content: center;
	align-items: center;
	width: 100%;
	height: 100%;
	color: inherit;
	text-decoration: none;
}

aside#leftbar section#left-menu ul li:hover {
	background: #303030;
}

aside#leftbar section#left-menu ul li[data-active] {
	background: #e53934;
	box-shadow: rgba(0, 0, 0, 0) 0px 0px 0px 0px, rgba(0, 0, 0, 0) 0px 0px 0px 0px, rgba(0, 0, 0, 0) 0px 0px 0px 0px, rgba(0, 0, 0, 0) 0px 0px 0px 0px, rgba(229, 57, 53, 0.28) 0px 8px 18px 0px;
}

aside#leftbar section#left-menu ul li svg {
	color: #ffffff;
	width: 20px;
}

aside#leftbar section#left-footer {
	display: flex;
	justify-content: flex-end;
	margin-top: auto;
	margin-bottom: 20px;
	align-items: stretch;
	flex-direction: column;
}

aside#leftbar section#left-footer ul {
	margin: 0px;
	width: 100%;
	padding: 0px;
	display: flex;
	justify-content: center;
	align-items: center;
	flex-direction: column;
	gap: 8px;
	list-style: none;
}

aside#leftbar section#left-footer ul li {
	background: transparent;
	border-radius: 15px;
	color: #ffffff;
	position: relative;

	width: 40px;
	height: 40px;

	display: flex;
	justify-content: center;
	align-items: center;

	transition: all 400ms;
	cursor: pointer;
}

aside#leftbar section#left-footer ul li a {
	display: flex;
	justify-content: center;
	align-items: center;
	width: 100%;
	height: 100%;
	color: inherit;
	text-decoration: none;
}

aside#leftbar section#left-footer ul li:hover {
	background: #303030;
}

aside#leftbar section#left-footer ul li[data-active] {
	background: #e53934;
	box-shadow: rgba(0, 0, 0, 0) 0px 0px 0px 0px, rgba(0, 0, 0, 0) 0px 0px 0px 0px, rgba(0, 0, 0, 0) 0px 0px 0px 0px, rgba(0, 0, 0, 0) 0px 0px 0px 0px, rgba(229, 57, 53, 0.28) 0px 8px 18px 0px;
}

aside#leftbar section#left-footer ul li svg {
	color: #ffffff;
	width: 20px;
}

aside#leftbar section#left-menu ul li::after,
aside#leftbar section#left-footer ul li::after {
	content: attr(data-title);
	position: absolute;
	left: calc(100% + 10px);
	top: 50%;
	transform: translateY(-50%) translateX(-4px);
	padding: 5px 8px;
	background: #252525;
	border-radius: 5px;
	color: #ffffff;
	font-size: 8pt;
	font-weight: 600;
	line-height: 1;
	opacity: 0;
	pointer-events: none;
	white-space: nowrap;
	transition: opacity 160ms, transform 160ms;
	z-index: 40;
}

aside#leftbar section#left-menu ul li::before,
aside#leftbar section#left-footer ul li::before {
	content: "";
	position: absolute;
	left: calc(100% + 5px);
	top: 50%;
	transform: translateY(-50%) translateX(-4px);
	border: 5px solid transparent;
	border-right-color: #252525;
	opacity: 0;
	pointer-events: none;
	transition: opacity 160ms, transform 160ms;
	z-index: 40;
}

aside#leftbar section#left-menu ul li:hover::after,
aside#leftbar section#left-menu ul li:hover::before,
aside#leftbar section#left-footer ul li:hover::after,
aside#leftbar section#left-footer ul li:hover::before {
	opacity: 1;
	transform: translateY(-50%) translateX(0);
}

aside#leftbar a:focus-visible {
	outline: 3px solid rgba(255, 255, 255, 0.9);
	outline-offset: 2px;
}

@media (max-width: 760px) {
	aside#leftbar {
		top: auto;
		bottom: 0;
		/* Page navigation stays visible without covering dialogs (z-index 60+). */
		z-index: 50;
		width: 100%;
		height: calc(var(--mobile-nav-height, 68px) + env(safe-area-inset-bottom));
		min-height: 0;
		overflow-x: auto;
		overflow-y: hidden;
		justify-content: flex-start;
		align-items: center;
		flex-direction: row;
		gap: 0;
		padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
		scrollbar-width: none;
	}

	aside#leftbar::-webkit-scrollbar {
		display: none;
	}

	aside#leftbar section#left-brand {
		display: none;
	}

	aside#leftbar section#left-menu,
	aside#leftbar section#left-footer {
		flex: 0 0 auto;
		margin: 0;
	}

	aside#leftbar section#left-menu ul,
	aside#leftbar section#left-footer ul {
		justify-content: flex-start;
		align-items: center;
		flex-direction: row;
		gap: 4px;
	}

	aside#leftbar section#left-menu ul li,
	aside#leftbar section#left-footer ul li {
		width: 52px;
		height: 52px;
		flex: 0 0 52px;
		border-radius: 12px;
	}

	aside#leftbar section#left-menu ul li a,
	aside#leftbar section#left-footer ul li a {
		padding: 4px 2px 15px;
	}

	aside#leftbar section#left-menu ul li svg,
	aside#leftbar section#left-footer ul li svg {
		width: 18px;
		height: 18px;
	}

	aside#leftbar section#left-menu ul li::after,
	aside#leftbar section#left-footer ul li::after {
		left: 50%;
		top: auto;
		bottom: 4px;
		width: 48px;
		overflow: hidden;
		padding: 0;
		transform: translateX(-50%);
		background: transparent;
		color: rgba(255, 255, 255, 0.82);
		font-size: 7px;
		font-weight: 600;
		line-height: 1;
		opacity: 1;
		text-align: center;
		text-overflow: ellipsis;
	}

	aside#leftbar section#left-menu ul li::before,
	aside#leftbar section#left-footer ul li::before {
		display: none;
	}

	aside#leftbar section#left-menu ul li:hover::after,
	aside#leftbar section#left-footer ul li:hover::after {
		transform: translateX(-50%);
	}
}
