/* Desktop Navigation Styles */
.desktop-nav {
	background: #fff;
	border-bottom: 1px solid #e9ecef;
	padding: 1rem 0;
}

.nav-container {
	display: flex !important;
	flex-direction: row !important;
	align-items: center;
	justify-content: space-between;
	gap: 2rem;
	width: 100%;
	padding: 0;
	margin: 0;
	overflow: visible !important;
}

.nav-items-container {
	border-top: 1px solid #e9ecef;
	padding: 0;
	margin: 0;
	display: flex;
	align-items: center;
}

.nav-brand-search {
	display: flex !important;
	flex-direction: row !important;
	align-items: center;
	gap: 2rem;
	flex: 1;
	width: auto;
}

.nav-brand {
	display: flex;
	align-items: center;
}

.nav-brand a {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	text-decoration: none;
	color: #000;
	font-weight: bold;
	font-size: 1.5rem;
}

.nav-brand img {
	height: 48px;
	width: auto;
}

.nav-search {
	flex: 1;
	max-width: 400px;
	display: flex;
	align-items: center;
}

.nav-search {
	flex: 1;
	max-width: 400px;
	display: flex;
	align-items: center;
	position: relative;
}

.nav-search input {
	width: 100%;
	padding: 0.5rem 1rem;
	padding-left: 2.5rem;
	border: 1px solid #dee2e6;
	border-radius: 6px;
	font-size: 0.8em;
}

.nav-search::before {
	content: '\F52A';
	font-family: 'bootstrap-icons';
	position: absolute;
	left: 0.75rem;
	top: 50%;
	transform: translateY(-50%);
	font-size: 0.9em;
	color: #6c757d;
	pointer-events: none;
	z-index: 1;
}

.nav-search:hover::before {
	color: #000;
}

.nav-admin-logout {
	margin-left: auto;
	display: flex;
	align-items: center;
	gap: 1rem;
}



.logout-item {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	text-decoration: none;
	color: #6c757d;
	font-size: 0.8rem;
	padding: 0.5rem 0.75rem;
	border-radius: 6px;
	transition: all 0.2s ease;
}

.logout-item:hover {
	background: #f8f9fa;
	color: #000;
}

/* Login button styling (same as logout) */
.logout-item[data-bs-toggle="modal"] {
	background: none;
	border: none;
	cursor: pointer;
}

/* Mobile Navigation Styles */
.mobile-nav-toggle {
	position: absolute;
	top: 1rem;
	right: 1rem;
	z-index: 1001;
}

.mobile-nav-toggle .btn {
	color: #6c757d;
	font-size: 1.5rem;
	padding: 0.5rem;
	border: none;
	background: none;
}

.mobile-nav-toggle .btn:hover {
	color: #000;
}

.mobile-nav-menu {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	height: 100vh;
	background: #fff;
	z-index: 1050;
	overflow-y: auto;
	padding: 0;
	box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.mobile-nav-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 1rem;
	padding-left: 1em;
	border-bottom: 1px solid #e9ecef;
	background: #fff;
	position: sticky;
	top: 0;
	z-index: 1;
}

.mobile-nav-brand img {
	height: 48px;
	width: auto;
}

.mobile-close-btn {
	color: #6c757d;
	font-size: 1.5rem;
	padding: 0.5rem;
	border: none;
	background: none;
}

.mobile-close-btn:hover {
	color: #000;
}

.mobile-nav-items {
	margin-bottom: 1rem;
}

.mobile-nav-item {
	display: block;
	width: 100%;
}

.mobile-nav-item a,
.mobile-nav-link {
	display: flex;
	align-items: center;
	padding: 0.75rem 1rem;
	padding-left: 1em;
	color: #6c757d;
	text-decoration: none;
	border-bottom: 1px solid #f8f9fa;
	transition: all 0.2s ease;
}

.mobile-nav-item a:hover,
.mobile-nav-link:hover {
	background: #f8f9fa;
	color: #000;
	text-decoration: none;
}

.mobile-nav-item i,
.mobile-nav-link i {
	margin-right: 0.75rem;
	font-size: 1rem;
}

.mobile-dropdown-menu {
	background: #f8f9fa;
	border-left: 3px solid #dee2e6;
}

.mobile-dropdown-item {
	display: block;
	width: 100%;
}

.mobile-dropdown-item a,
.mobile-dropdown-link {
	display: flex;
	align-items: center;
	padding: 0.5rem 1rem 0.5rem 2rem;
	padding-left: 2em;
	color: #6c757d;
	text-decoration: none;
	border-bottom: 1px solid #e9ecef;
	transition: all 0.2s ease;
}

.mobile-dropdown-item a:hover,
.mobile-dropdown-link:hover {
	background: #e9ecef;
	color: #000;
	text-decoration: none;
}

.mobile-dropdown-item i,
.mobile-dropdown-link i {
	margin-right: 0.75rem;
	font-size: 0.9rem;
}

.mobile-sub-dropdown {
	background: #fff;
	border-left: 3px solid #adb5bd;
}

.mobile-sub-dropdown-item {
	display: flex;
	align-items: center;
	padding: 0.5rem 1rem 0.5rem 3rem;
	padding-left: 3em;
	color: #6c757d;
	text-decoration: none;
	border-bottom: 1px solid #f8f9fa;
	transition: all 0.2s ease;
}

.mobile-sub-dropdown-item:hover {
	background: #f8f9fa;
	color: #000;
	text-decoration: none;
}

.mobile-sub-dropdown-item i {
	margin-right: 0.75rem;
	font-size: 0.9rem;
}

.mobile-user-menu {
	border-top: 2px solid #e9ecef;
	padding-top: 1rem;
}

.mobile-user-item {
	display: flex;
	align-items: center;
	padding: 0.75rem 1rem;
	padding-left: 1em;
	color: #6c757d;
	text-decoration: none;
	border-bottom: 1px solid #f8f9fa;
	transition: all 0.2s ease;
}

.mobile-user-item:hover {
	background: #f8f9fa;
	color: #000;
	text-decoration: none;
}

.mobile-user-item i {
	margin-right: 0.75rem;
	font-size: 1rem;
}

.mobile-login {
	padding: 1rem;
	padding-left: 1em;
}

/* Hide desktop navigation on mobile */
@media (max-width: 767.98px) {
	.nav-items-container {
		display: none !important;
	}
	
	.nav-admin-logout {
		display: none !important;
	}
	
	.nav-user {
		display: none !important;
	}
	
	/* Also hide the search on mobile for now */
	.nav-search {
		display: none !important;
	}
}

.nav-items {
	display: flex;
	align-items: center;
	gap: 0.25rem;
	padding: 0;
	margin: 0;
	position: relative !important;
	overflow: visible !important;
}

.nav-item {
	display: flex !important;
	flex-direction: row !important;
	align-items: center !important;
	gap: 0.5rem;
	text-decoration: none;
	color: #6c757d;
	font-size: 0.8rem;
	padding: 0 0.3rem;
	border-radius: 6px;
	transition: all 0.2s ease;
}

.nav-item:hover {
	background: #f8f9fa;
	color: #000;
}

.nav-item i {
	font-size: 0.9rem;
}

/* Dropdown Styles */
.dropdown {
	position: relative !important;
	display: inline-block !important;
}

.dropdown .nav-link {
	display: flex !important;
	flex-direction: row !important;
	align-items: center !important;
	gap: 0.5rem;
	text-decoration: none;
	color: #6c757d;
	font-size: 0.8rem;
	border-radius: 6px;
	transition: all 0.2s ease;
	cursor: pointer;
}

.dropdown .nav-link:hover {
	background: #f8f9fa;
	color: #000;
}

.dropdown-menu {
	position: absolute;
	top: 100%;
	left: 0;
	background: #fff;
	border: 1px solid #e9ecef;
	border-radius: 6px;
	box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
	padding: 0.5rem 0;
	min-width: 200px;
	opacity: 0;
	visibility: hidden;
	transform: translateY(-10px);
	transition: all 0.2s ease;
	z-index: 9999;
	pointer-events: none;
}

.dropdown:hover .dropdown-menu {
	opacity: 1 !important;
	visibility: visible !important;
	transform: translateY(0) !important;
	pointer-events: auto;
	display: block !important;
}

/* Ensure dropdown stays visible when hovering over the menu */
.dropdown-menu:hover {
	opacity: 1 !important;
	visibility: visible !important;
	transform: translateY(0) !important;
	display: block !important;
}



.dropdown-item {
	display: flex !important;
	flex-direction: row !important;
	align-items: center !important;
	gap: 0.5rem;
	color: #6c757d;
	text-decoration: none;
	font-size: 0.8rem;
	transition: all 0.2s ease;
}

.dropdown-item i {
	margin-right: 0.25rem;
	font-size: 1rem;
}

.dropdown-item:hover {
	background: #f8f9fa;
	color: #000;
}

/* Multi-level dropdown styles */
.dropdown-item.has-children {
	position: relative;
}

.dropdown-item.has-children::after {
	content: '›';
	position: absolute;
	right: 1rem;
	font-size: 1.2rem;
	color: #6c757d;
}

.dropdown-item.has-children:hover::after {
	color: #000;
}

/* Sub-dropdown (grandchildren) */
.sub-dropdown {
	position: absolute;
	left: 100%;
	top: 0;
	background: #fff;
	border: 1px solid #e9ecef;
	box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
	padding: 0.5rem 0;
	min-width: 200px;
	opacity: 0;
	visibility: hidden;
	transform: translateX(-10px);
	transition: all 0.2s ease;
	z-index: 9999;
}

.dropdown-item.has-children:hover .sub-dropdown {
	opacity: 1;
	visibility: visible;
	transform: translateX(0);
}

.sub-dropdown-item {
	display: flex !important;
	flex-direction: row !important;
	align-items: center !important;
	gap: 0.5rem;
	padding: 0.1rem 1rem;
	color: #6c757d;
	text-decoration: none;
	font-size: 0.8rem;
	transition: all 0.2s ease;
}

.sub-dropdown-item:hover {
	background: #f8f9fa;
	color: #000;
}

.sub-dropdown-item i {
	margin-right: 0.5rem;
	font-size: 1rem;
}

.nav-user {
	display: flex;
	align-items: center;
	gap: 1rem;
}

.user-item {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	text-decoration: none;
	color: #6c757d;
	font-size: 0.8rem;
	padding: 0.5rem 0.75rem;
	border-radius: 6px;
	transition: all 0.2s ease;
}

.user-item:hover {
	background: #f8f9fa;
	color: #000;
}
