/* Sidebar Header (Logo + Hamburger) */
.sidebar-header {
	display: flex;
	align-items: center;
	gap: 8px;
	justify-content: flex-start;
	padding: 12px 0 0 16px;
	background: #23272a;
	border-bottom: 1px solid #444;
	min-height: 56px;
}
.sidebar-logo img {
	display: inline-block;
	height: 40px;
	width: auto;
	max-width: 240px;
	margin-left: 0;
}
/* Sidebar Sectioned Menu Styles */
.sidebar-section {
	margin-bottom: 32px;
	background-color: #181a1b;
}
.sidebar-title {
	padding: 12px 16px;
	background: #333;
	color: #aaa;
	font-size: 1em;
	font-weight: 600;
	border-bottom: 1px solid #444;
}
.sidebar-list {
	list-style: none;
	margin: 0;
	padding: 0;
}
.sidebar-list li {
	border-bottom: 1px solid #444;
}
.sidebar-list a {
	display: flex;
	align-items: center;
	padding: 12px 16px;
	text-decoration: none;
	font-size: 1em;
	transition: background 0.2s, color 0.2s;
}
.sidebar-list a:hover {
	background: #181a1b;
	color: #fff;
}
.sidebar-list i {
	margin-right: 12px;
	font-size: 1.2em;
	color: #fff;
}
.sidebar-language-menu {
	border-bottom: 1px solid #444;
}
.sidebar-language-menu summary {
	display: flex;
	align-items: center;
	padding: 12px 16px;
	list-style: none;
	cursor: pointer;
	user-select: none;
	transition: background 0.2s, color 0.2s;
}
.sidebar-language-menu summary::-webkit-details-marker {
	display: none;
}
.sidebar-language-menu summary:hover {
	background: #181a1b;
	color: #fff;
}
.sidebar-language-menu summary i {
	margin-right: 12px;
	font-size: 1.2em;
	color: #fff;
}
.sidebar-language-menu[open] summary .arrow {
	transform: rotate(90deg);
}
.sidebar-language-list {
	list-style: none;
	margin: 0;
	padding: 0;
	background: #101214;
}
.sidebar-language-list li {
	border-top: 1px solid #2f3235;
}
.sidebar-language-list a {
	display: flex;
	align-items: center;
	padding: 10px 16px 10px 44px;
	text-decoration: none;
}
.sidebar-language-list a[aria-current="page"] {
	color: #fff;
	font-weight: 600;
}
.arrow {
	margin-left: auto;
	color: #aaa;
	font-size: 1.1em;
	transition: transform 0.2s;
}
.menu-toggle {
	background: none;
	border: none;
	color: var(--primary-color);
	font-size: 20px;
	cursor: pointer;
	margin-right: 16px;
	display: flex;
	align-items: center;
	transition: filter 0.2s;
		position: relative;
		width: 32px;
		height: 32px;
		padding: 0;
		justify-content: center;
		align-items: center;
		overflow: visible;
}
.menu-toggle:hover::after,
.menu-toggle:focus::after {
	content: '';
	position: absolute;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
	width: 32px;
	height: 32px;
	background: #222;
	border-radius: 50%;
	z-index: 0;
}
.menu-toggle .menu-icon {
			position: relative;
			z-index: 1;
			display: flex;
			align-items: center;
			justify-content: center;
			width: 32px;
			height: 32px;
		}
.menu-icon i {
			font-size: 20px;
			margin: 0;
			line-height: 1;
}

.menu-icon {
	display: inline-block;
	font-size: 1.5em;
	transition: filter 0.2s;
}

.menu-toggle:hover .menu-icon,
.menu-toggle:focus .menu-icon,
.menu-toggle:active .menu-icon {
	filter: brightness(1.5);
	opacity: 0.85;
}

/* Sidebar now overlaps header for consistent menu/logo position */
.sidebar {
	transition: transform 0.3s ease, box-shadow 0.3s ease;
	transform: translateX(-100%);
	position: fixed;
	left: 0;
	top: 0;
	height: 100vh;
	z-index: 9999; /* Ensure sidebar is above header */
	background: #23272a;
	color: #e0e0e0;
	min-width: 300px;
	max-width: 300px;
	box-shadow: 2px 0 16px rgba(0,0,0,0.18);
	overflow: hidden;
	pointer-events: none;
	visibility: hidden;
}

.sidebar-nav {
	height: calc(100vh - 56px); /* 56px = min-height of .sidebar-header */
	overflow-y: auto;
}

/* Optional: Custom scrollbar styling for sidebar-nav */
.sidebar-nav::-webkit-scrollbar {
	width: 8px;
	background: #23272a;
}
.sidebar-nav::-webkit-scrollbar-thumb {
	background: #444;
	border-radius: 4px;
}

.sidebar.sidebar-open {
    transform: translateX(0);
    box-shadow: 2px 0 8px rgba(0,0,0,0.15);
	pointer-events: auto;
	visibility: visible;
}