/* ========== TOP PERSISTENT BAR ========== */ 
#top-bar {
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	color: white;
	position: sticky;
	top: 0;
	z-index: 1000;
	box-shadow: 0 4px 20px rgba(0,132,201,0.15);
}

.top-bar {
	background: rgba(0, 165, 219, 0.95);
	//border-bottom: 3px solid rgba(0, 132, 201, 0.95);
}

.top-bar-registered {
	background: rgba(0, 132, 201, 0.95);
	//border-bottom: 3px solid rgba(0, 165, 219, 0.95);
	//background: rgba(89, 89, 89, 0.95);
	//border-bottom: 3px solid rgba(0, 219, 109, 0.95);
}

.top-bar-wrapper {
	max-width: 1400px;
	margin: 0 auto;
	padding: 8px 30px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	min-height: 47px;
}

.top-bar-left {
	position: relative;
}

#section-switcher {
	background: rgba(255,255,255,0.12);
	border: 1px solid rgba(255,255,255,0.25);
	color: white;
	padding: 6px 16px;
	border-radius: 8px;
	cursor: pointer;
	font-family: 'Roboto', sans-serif;
	font-size: 14px;
	font-weight: 400;
	display: flex;
	align-items: center;
	gap: 8px;
	transition: all 0.3s ease;
}

#section-switcher:hover {
	background: rgba(255,255,255,0.2);
	transform: translateY(-1px);
}

.section-dropdown {
	position: absolute;
	top: 40px;
	left: 0;
	background: rgba(255, 255, 255, 0.98);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	border-radius: 12px;
	box-shadow: 0 8px 30px rgba(0,0,0,0.12);
	min-width: 200px;
	overflow: hidden;
}

.section-link {
	display: block;
	padding: 12px 20px;
	color: #595959;
	text-decoration: none;
	font-family: 'Roboto', sans-serif;
	font-size: 14px;
	font-weight: 400;
	transition: all 0.2s ease;
}

.section-link:hover:not(.locked) {
	background: rgba(0,132,201,0.05);
	color: #0084c9;
}

.section-link.active {
	background: rgba(0,132,201,0.08);
	color: #0084c9;
	font-weight: 500;
}

.section-link.locked {
	color: #b0b0b0;
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.section-link.locked:hover {
	background: rgba(0, 0, 0, 0.03);
	color: #b0b0b0;
}

.top-bar-right {
	display: flex;
	align-items: center;
	gap: 20px;
	font-size: 14px;
	font-weight: 300;
}

.user-welcome {
	font-weight: 300;
	opacity: 0.9;
}

.top-bar-link {
	color: white;
	text-decoration: none;
	font-weight: 400;
	transition: all 0.3s ease;
	position: relative;
}

.top-bar-link:hover {
	opacity: 0.8;
}

.top-bar-link:hover::after {
	content: '';
	position: absolute;
	bottom: -4px;
	left: 0;
	right: 0;
	height: 2px;
	background: white;
}

@media (max-width: 767px) {
	.user-welcome {
		display: none;
	}
}
/* ========== END TOP PERSISTENT BAR ========== */

/* ========== MAIN NAVIGATION BAR ========== */
#main-nav {
	background: rgba(255, 255, 255, 0.98);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	box-shadow: 0 2px 15px rgba(0,132,201,0.08);
	position: sticky;
	top: 47px;
	z-index: 999;
	transition: box-shadow 0.3s ease;
}

.nav-container {
	max-width: 1400px;
	margin: 0 auto;
	padding: 0 30px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	height: 75px;
}

.logo {
	display: flex;
	align-items: center;
}

.logo a {
	display: flex;
	align-items: center;
	transition: opacity 0.3s ease;
}

.logo a:hover {
	opacity: 0.8;
}

.logo-image {
	height: 75px;
	display: block;
}

.hamburger {
	display: none;
	flex-direction: column;
	gap: 5px;
	background: none;
	border: none;
	cursor: pointer;
	padding: 8px;
}

.hamburger span {
	width: 25px;
	height: 3px;
	background: #595959;
	border-radius: 2px;
	transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
	transform: translate(0px, 8px) rotate(40deg);
}

.hamburger.active span:nth-child(2) {
	opacity: 0;
}

.hamburger.active span:nth-child(3) {
	transform: translate(0px, -8px) rotate(-40deg);
}

.nav-menu {
	display: flex;
	list-style: none;
	align-items: center;
	gap: 30px;
}

.nav-link {
	text-decoration: none;
	color: #595959;
	font-size: 15px;
	font-weight: 400;
	transition: all 0.3s ease;
	position: relative;
}

.nav-link:not(.nav-btn):hover {
	color: #0084c9;
	transform: translateY(-1px);
}

.nav-link:not(.nav-btn):hover::after {
	content: '';
	position: absolute;
	bottom: -8px;
	left: 0;
	right: 0;
	height: 2px;
	background: linear-gradient(90deg, #0084c9 0%, #00a5db 100%);
	border-radius: 2px;
}

/* Active state for non-button nav links */
.nav-link:not(.nav-btn).active {
	color: #0084c9;
	font-weight: 500;
}

.nav-link:not(.nav-btn).active::after {
	content: '';
	position: absolute;
	bottom: -8px;
	left: 0;
	right: 0;
	height: 2px;
	background: linear-gradient(90deg, #0084c9 0%, #00a5db 100%);
	border-radius: 2px;
}

.nav-btn {
	background: linear-gradient(135deg, #0084c9 0%, #00a5db 100%);
	color: white;
	padding: 10px 24px;
	border-radius: 8px;
	font-weight: 500;
	transition: all 0.3s ease;
}

.nav-btn:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 25px rgba(0,132,201,0.25);
}

@media (max-width: 860px) {
	.hamburger {
		display: flex;
	}
	
	.nav-menu {
		display: none;
	}
}
/* ========== END MAIN NAVIGATION BAR ========== */

/* ========== MOBILE SLIDE-OUT MENU ========== */
.mobile-menu {
	position: fixed;
	left: -300px;
	top: 0;
	width: 300px;
	height: 100vh;
	height: 100dvh; /* Dynamic viewport height for newer browsers */
	background: rgba(255, 255, 255, 0.98);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	z-index: 2000;
	transition: left 0.3s ease;
	overflow-y: auto;
	box-shadow: 2px 0 20px rgba(0,132,201,0.15);
	-webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
}

.mobile-menu::-webkit-scrollbar {
	width: 8px;
}

.mobile-menu::-webkit-scrollbar-track {
	background: #f0f0f0;
}

.mobile-menu::-webkit-scrollbar-thumb {
	background: #0084c9;
	border-radius: 4px;
}

.mobile-menu::-webkit-scrollbar-thumb:hover {
	background: #00a5db;
}

.mobile-menu {
	scrollbar-width: thin;
	scrollbar-color: #0084c9 #f0f0f0;
}

.mobile-menu.active {
	left: 0;
}

.mobile-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100vh;
	background: rgba(0,0,0,0.4);
	backdrop-filter: blur(2px);
	-webkit-backdrop-filter: blur(2px);
	z-index: 1999;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.3s ease;
}

.mobile-overlay.active {
	opacity: 1;
	pointer-events: all;
}

.mobile-menu-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 20px;
	background: rgba(0,165,219,0.95);
	color: white;
}

.mobile-menu-header-insight {
	background: rgba(0,132,201,0.95);
}

.mobile-menu-header h2 {
	font-family: 'Ruda', sans-serif;
	font-size: 20px;
	font-weight: 600;
}

#mobile-menu-close {
	background: none;
	border: none;
	color: white;
	font-size: 32px;
	cursor: pointer;
	padding: 0;
	width: 32px;
	height: 32px;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: transform 0.3s ease;
}

#mobile-menu-close:hover {
	transform: rotate(90deg);
}

.mobile-menu-content {
	padding: 20px 0;
	padding-bottom: 60px; /* Extra padding at bottom to prevent overlap with address bars */
}

.mobile-section {
	margin-bottom: 25px;
}

.mobile-section-title {
	font-family: 'Ruda', sans-serif;
	font-size: 15px;
	font-weight: 600;
	color: #0084c9;
	padding: 0 20px;
	margin-bottom: 10px;
	text-transform: uppercase;
	letter-spacing: 1px;
}

.mobile-submenu {
	list-style: none;
}

.mobile-submenu li a {
	display: block;
	padding: 10px 20px;
	color: #595959;
	text-decoration: none;
	font-size: 14px;
	font-weight: 300;
	transition: all 0.2s ease;
}

.mobile-submenu li a:hover {
	background: rgba(0,132,201,0.05);
	color: #0084c9;
}

.mobile-submenu li a:hover.locked {
	background: rgba(0, 0, 0, 0.03);
	color: #b0b0b0;
}

.mobile-submenu li a.active {
	background: rgba(0,132,201,0.08);
	color: #0084c9;
	font-weight: 400;
}

.mobile-submenu li a.locked {
	color: #b0b0b0;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
}

.mobile-submenu li a.unlocked {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
}

.mobile-flat-links {
	padding: 15px 20px;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.mobile-flat-link {
	padding: 10px 15px;
	color: #595959;
	text-decoration: none;
	font-size: 14px;
	font-weight: 400;
	transition: all 0.2s ease;
	border-radius: 6px;
}

.mobile-flat-link:hover {
	background: rgba(0,132,201,0.05);
	color: #0084c9;
}

.mobile-flat-link.active {
	background: rgba(0,132,201,0.08);
	color: #0084c9;
	font-weight: 500;
}

.mobile-btn {
	background: linear-gradient(135deg, #0084c9 0%, #00a5db 100%);
	color: white !important;
	font-weight: 500;
	text-align: center;
}

.mobile-btn:hover {
	background: linear-gradient(135deg, #00a5db 0%, #0084c9 100%);
}
/* ========== END MOBILE SLIDE-OUT MENU ========== */

/* ========== LEFT SIDEBAR ========== */
#sidebar-wrapper {
	background: linear-gradient(135deg, #ffffff 0%, #f8fbfd 100%);
	transition: all 0.4s ease;
}

#sidebar-wrapper:hover {
	box-shadow: 0 8px 30px rgba(0,132,201,0.12);
	border-color: rgba(0,132,201,0.15);
}

#sidebar {
	width: 260px;
	flex-shrink: 0;
	margin: 30px 0 60px 0;
	/* padding: 30px 0 60px 0; Changed padding to margin */	
	position: sticky;
	top: 164px;
	transition: all 0.4s ease;
}

@media (max-width: 860px) {
	#sidebar {
		display: none;
	}
}

.sidebar-section {
	margin-bottom: 30px;
}

.sidebar-section:last-child {
	margin-bottom: 0;
}

.sidebar-title {
	font-family: 'Ruda', sans-serif;
	font-size: 15px;
	font-weight: 600;
	color: #0084c9;
	padding: 0 25px;
	margin-bottom: 12px;
	text-transform: uppercase;
	letter-spacing: 1px;
	display: flex;
	align-items: center;
	gap: 8px;
}

.sidebar-icon {
	opacity: 0.8;
}

.sidebar-submenu {
	list-style: none;
}

.sidebar-link {
	display: block;
	padding: 10px 25px;
	color: #595959;
	text-decoration: none;
	font-size: 14px;
	font-weight: 300;
	transition: all 0.3s ease;
	border-left: 3px solid transparent;
	border-radius: 0 8px 8px 0;
	white-space: nowrap;
}

.sidebar-link:hover {
	background: rgba(0,132,201,0.05);
	border-left-color: #00a5db;
	color: #0084c9;
	padding-left: 28px;
}

.sidebar-link:hover.locked {
	background: rgba(0, 0, 0, 0.03);
	border-left-color: transparent;
	color: #b0b0b0;
	padding-left: 25px;
}

.sidebar-link.active {
	background: rgba(0,132,201,0.08);
	border-left-color: #0084c9;
	color: #0084c9;
	font-weight: 400;
}

.sidebar-link.locked {
	color: #b0b0b0;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
}

.sidebar-link.unlocked {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
}
/* ========== END LEFT SIDEBAR ========== */

/* ========== SIDEBAR SUBMENU ITEM HEADER ========== */
#sidebar .sidebar-submenu li a.sidebar-link.sidebar-link-header {
    font-family: 'Ruda', sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: #0084c9;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 2px;
}

#sidebar .sidebar-submenu li a.sidebar-link.sidebar-link-header .sidebar-icon {
    opacity: 0.8;
}
/* ========== END SIDEBAR SUBMENU ITEM HEADER ========== */


/* ========== MOBILE SUBMENU ITEM HEADER ========== */
#mobile-menu .mobile-submenu li a.sidebar-link-header {
    font-family: 'Ruda', sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: #0084c9;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 2px;
}

#mobile-menu .mobile-submenu li a.sidebar-link-header .sidebar-icon {
    opacity: 0.8;
}
/* ========== END MOBILE SUBMENU ITEM HEADER ========== */