@media (max-width: 991px) {
	#sidebar-backdrop {
		position: fixed;
		top: 0;
		left: 0;
		height: 100vh;
		width: 100vw;
		background-color: rgba(0, 0, 0, 0.5);
		z-index: 1000;
		display: none;
		visibility: hidden;
	}

	.open #sidebar-backdrop {
		display: block;
		visibility: visible;
	}

	#sidebar-container {
		position: fixed;
		top: 0;
		left: -280px;
		height: 100vh;
		width: 60%;
		max-width: 280px;
		border: 1px solid #d3d3d3;
		border-radius: 8px;
		z-index: 1001;
		transition: all 0.3s ease;
		padding: 0;
	}
	#sidebar-container.open {
		left: 0;
	}

	#sidebar-close-btn {
		aspect-ratio: 1 / 1;
		border: 1px solid #dc3545;
		color: #dc3545;
		border-radius: 100%;
		background-color: #fff;
		padding: 0.25rem;
		display: inline-flex;
		justify-content: center;
		align-items: center;
	}

	#sidebar-menu {
		height: 100%;
		background: #fff;
		position: relative;
		z-index: 1001;
	}

	.menu-category {
		position: relative;
		z-index: 1001;
		padding: 10px 10px;
		border-bottom: 1px solid #000;
		background-color: #fff;

		.fa-plus {
			transition: all 0.5s ease;
		}

		.menu-category-display {
			display: flex;
			align-items: center;
			justify-content: space-between;
			gap: 0 1.5rem;
		}

		.menu-category-items {
			z-index: 1000;
			display: grid;
			grid-template-rows: 0fr;
			transition: all 0.5s ease;

			& > div {
				overflow: hidden;
				min-height: 0;
			}
		}

		&.open {
			.menu-category-items {
				grid-template-rows: 1fr;
			}

			.fa-plus {
				transform: rotate(45deg);
			}
		}
		.menu-item {
			margin: 0.5rem 0 0.5rem 1.5rem;
		}
	}
}

@media (min-width: 992px) {
	#sidebar-container {
		position: sticky;
		z-index: 10;
		top: 0;
		left: 0;
		height: 100vh;
		width: 80px;
		padding-top: 45px;
		padding-bottom: 20px;
		border-right: 1px solid #e0e0e0;
		display: flex;
		flex-direction: column;
		justify-content: space-between;
		align-items: center;
	}

	#sidebar-backdrop {
		display: none;
		visibility: hidden;
	}

	#sidebar-close-btn-container {
		display: none;
	}

	#sidebar-menu {
		height: 100%;
		width: 100%;
		display: flex;
		flex-direction: column;
		align-items: center;
	}

	.menu-category-items {
		position: absolute;
		left: 100%;
		top: 0;
		background: white;
		width: 180px;
		padding: 12px;
		border-radius: 18px;
		box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
		opacity: 0;
		visibility: hidden;
		transform: translateX(-5px);
		transition: all 0.2s ease-in-out;
		z-index: 10;
		max-height: calc(100vh - 40px);
		overflow-y: auto;
	}

	.menu-category {
		position: relative;
		padding-right: 20px;
		margin-right: -20px;
		&:hover {
			.menu-category-display {
				background-color: #f3f3f3;
			}

			.menu-category-items {
				opacity: 1;
				visibility: visible;
				transform: translateX(0);
			}
		}
	}

	.menu-category-display {
		height: 45px;
		width: 45px;
		display: flex;
		align-items: center;
		justify-content: center;
		position: relative;
		border-radius: 14px;
		cursor: pointer;
		margin-bottom: 20px;
		text-align: center;

		i {
			font-size: 20px;
		}

		span {
			display: none;
		}
		i.fa-plus {
			display: none;
		}
	}

	.menu-item {
		margin: 0.5rem 0;
		border-radius: 10px;
		padding: 8px 12px;
		line-height: 1.3rem;
		color: #7e7e7e;
		&:hover {
			color: #333333;
			background-color: #f3f3f3;
		}
	}
}
