.navbar {
	display: flex;
	flex-direction: column;
	align-items: center;
	background-color: white;
	padding: 0.5rem;
	width: 100%;
	box-sizing: border-box;
	position: relative;
	z-index: 1050;
}

.navbar-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	width: 100%;
	margin: 0 auto;
	/* Centers the content */
}

.navbar-logo {
	width: 8vw;
	height: auto;
}

.navbar-title {
	font-size: 1.5rem;
	font-weight: bold;
	font-style: italic;
	color: #ec814b;
	text-align: center;
	flex-grow: 1;
	margin: 0 1rem;
	white-space: nowrap;
	/* Prevents breaking text into multiple lines */
}

.navbar-login {
	font-size: 1rem;
}

.login-link {
	color: #ec814b;
	text-decoration: none;
	font-weight: bold;
	padding: 0.5rem 1rem;
	border: 1px solid #ec814b;
	border-radius: 0.3rem;
	transition: background-color 0.3s ease, color 0.3s ease;
}

.login-link:hover {
	background-color: rgb(255, 176, 98);
	color: white;
}

.navbar-toggle {
	display: none;
	background: linear-gradient(135deg, #ec814b 0%, #d66a35 100%);
	border: none;
	font-size: 1.5rem;
	color: white;
	cursor: pointer;
	width: 44px;
	height: 44px;
	border-radius: 8px;
	align-items: center;
	justify-content: center;
	box-shadow: 0 2px 8px rgba(236, 129, 75, 0.3);
	transition: all 0.2s ease;
}

.navbar-toggle:hover {
	transform: scale(1.05);
	box-shadow: 0 4px 12px rgba(236, 129, 75, 0.4);
}

.navbar-menu {
	list-style: none;
	display: flex;
	flex-direction: row;
	justify-content: center;
	padding: 0;
	margin: 0;
	width: 100%;
	max-width: 1200px;
	/* Limits width for large screens */
	box-sizing: border-box;
}

.navbar-menu li {
	margin: 0 0.5rem;
}

.navbar-menu a {
	text-decoration: none;
	font-size: 1rem;
	color: #ec814b;
	padding: 0.5rem 1rem;
	transition: color 0.3s ease, background-color 0.3s ease;
}

.navbar-menu a:hover {
	color: white;
	background-color: rgb(255, 176, 98);
	border-radius: 0.3rem;
}

/* Vertical Side Pane Menu */
.side-pane-menu {
	width: 0;
	/* Initially hidden */
	position: fixed;
	top: 10px;
	/* Slight margin from the top */
	left: 0;
	background-color: white;
	/* White background */
	overflow: hidden;
	/* Prevent horizontal scroll */
	transition: 0.3s;
	/* Smooth slide animation */
	padding: 10px 0;
	/* Inner padding for the menu */
	box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2);
	z-index: 1000;
	border: 1px solid #ddd;
	border-radius: 0 10px 10px 0;
}

/* Dynamically Set the Height Based on Menu Content */
.side-pane-menu.show {
	width: 250px;
	/* Set the width of the pane when opened */
	height: auto;
	/* Adjust height based on the menu content */
}

/* Links in the Side Pane */
.side-pane-menu a {
	padding: 10px 15px;
	text-decoration: none;
	font-size: 16px;
	/* Smaller font size */
	color: #ec814b;
	display: block;
	transition: 0.3s;
}

.side-pane-menu a:hover {
	background-color: #ec814b;
	color: white;
}

/* Close Button */
.side-pane-menu .closebtn {
	position: absolute;
	top: 5px;
	right: 10px;
	font-size: 20px;
	/* Adjusted font size for close button */
	color: #ec814b;
	text-decoration: none;
	cursor: pointer;
}


/* Responsive Styles */
@media screen and (max-width: 768px) {
	.navbar-title {
		font-size: 1rem;
	}

	.navbar-logo {
		width: 25vw;
		max-width: 140px;
		height: auto;
	}

	.navbar-menu {
		flex-direction: column;
		max-height: 0;
		overflow: hidden;
		transition: max-height 0.3s ease-in-out;
	}

	.navbar-toggle {
		display: block;
	}

	.navbar-title {
		display: none;
		/* Hides tagline on smaller screens */
	}

	.navbar-menu.show {
		max-height: 100vh;
	}

	.navbar-menu li {
		margin: 0.5rem 0;
	}

	.navbar-menu a {
		font-size: 1.2rem;
	}

	/* Vertical Side Pane Menu */
	.side-pane-menu {
		height: 100%;
		/* Full height */
		width: 0;
		/* Initially hidden */
		position: fixed;
		/* Fixed Sidebar */
		top: 0;
		left: 0;
		background-color: white;
		/* White background */
		overflow-x: hidden;
		/* Prevent horizontal scroll */
		transition: 0.3s;
		/* Smooth slide animation */
		padding-top: 60px;
		/* Space for the close button */
		box-shadow: 2px 0 5px rgba(0, 0, 0, 0.2);
		z-index: 1000;
	}

	/* Links in the Side Pane */
	.side-pane-menu a {
		padding: 10px 20px;
		text-decoration: none;
		font-size: 18px;
		color: #ec814b;
		display: block;
		transition: 0.3s;
	}

	.side-pane-menu a:hover {
		background-color: #ec814b;
		color: white;
	}

	/* Close Button */
	.side-pane-menu .closebtn {
		position: absolute;
		top: 0;
		right: 15px;
		font-size: 36px;
		color: #ec814b;
		text-decoration: none;
		cursor: pointer;
	}

	.side-pane-menu a {
		font-size: 14px;
		/* Adjusted font size for small screens */
		padding: 8px 12px;
	}

	.side-pane-menu .closebtn {
		font-size: 18px;
	}
}

/* User Avatar - Circular Initials */
.user-avatar {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: linear-gradient(135deg, #ec814b 0%, #d66a35 100%);
	color: white;
	font-weight: 700;
	font-size: 0.9rem;
	text-decoration: none;
	text-transform: uppercase;
	box-shadow: 0 2px 8px rgba(236, 129, 75, 0.3);
	transition: all 0.2s ease;
}

.user-avatar:hover {
	transform: scale(1.1);
	box-shadow: 0 4px 12px rgba(236, 129, 75, 0.4);
	color: white;
}

@media screen and (max-width: 768px) {
	.user-avatar {
		width: 36px;
		height: 36px;
		font-size: 0.8rem;
	}
}

/* ========================================
   Styled Sidebar Menu (Dark Theme)
   ======================================== */
.styled-sidebar-overlay {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(0, 0, 0, 0.5);
	z-index: 1040;
	opacity: 0;
	transition: opacity 0.3s ease;
}

.styled-sidebar-overlay.active {
	display: block;
	opacity: 1;
}

.styled-sidebar {
	position: fixed;
	top: 0;
	left: -300px;
	width: 280px;
	height: 100%;
	background: linear-gradient(180deg, #2c3e50 0%, #1a252f 100%);
	z-index: 1050;
	transition: left 0.3s ease;
	display: flex;
	flex-direction: column;
	box-shadow: 4px 0 20px rgba(0, 0, 0, 0.3);
}

.styled-sidebar.open {
	left: 0;
}

.styled-sidebar-header {
	background: linear-gradient(135deg, #ec814b 0%, #d35400 100%);
	padding: 1.25rem 1.5rem;
	display: flex;
	justify-content: space-between;
	align-items: center;
	color: white;
}

.styled-sidebar-title {
	font-weight: 700;
	font-size: 0.85rem;
	letter-spacing: 1px;
	text-transform: uppercase;
}

.styled-sidebar-close {
	background: rgba(255, 255, 255, 0.2);
	border: none;
	color: white;
	width: 32px;
	height: 32px;
	border-radius: 8px;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background 0.2s;
}

.styled-sidebar-close:hover {
	background: rgba(255, 255, 255, 0.3);
}

.styled-sidebar-nav {
	flex: 1;
	overflow-y: auto;
	padding: 1rem 0;
}

.styled-sidebar-link {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	padding: 0.875rem 1.5rem;
	color: rgba(255, 255, 255, 0.85);
	text-decoration: none;
	transition: all 0.2s ease;
	font-size: 0.95rem;
}

.styled-sidebar-link:hover {
	background: rgba(255, 255, 255, 0.1);
	color: white;
}

.styled-sidebar-link.active {
	background: rgba(236, 129, 75, 0.2);
	color: #ec814b;
	border-left: 3px solid #ec814b;
}

.styled-sidebar-link i {
	width: 20px;
	text-align: center;
	font-size: 1rem;
	opacity: 0.8;
}

.styled-sidebar-link.danger {
	color: #e74c3c;
}

.styled-sidebar-link.danger:hover {
	background: rgba(231, 76, 60, 0.1);
}

.styled-sidebar-divider {
	height: 1px;
	background: rgba(255, 255, 255, 0.1);
	margin: 0.5rem 1.5rem;
}

/* Sidebar Toggle Button */
.styled-sidebar-toggle {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	background: linear-gradient(135deg, #ec814b 0%, #d35400 100%);
	color: white;
	border: none;
	padding: 0.625rem 1rem;
	border-radius: 8px;
	font-weight: 600;
	font-size: 0.9rem;
	cursor: pointer;
	transition: all 0.2s;
	box-shadow: 0 2px 8px rgba(236, 129, 75, 0.3);
}

.styled-sidebar-toggle:hover {
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(236, 129, 75, 0.4);
}

/* Body class when menu is open */
body.sidebar-open {
	overflow: hidden;
}