/*
 * Modern Header Styles
 * Created for NCheStore E-commerce Platform
 * Version: 2.0
 * Description: Modern responsive single-row header with integrated navigation
 */

/* GLOBAL OVERRIDE: Ensure no element clips dropdown menus */
body, html, .container, .container-fluid, .row, .col, .col-*, 
header, nav, .navbar, .header, .main-header, .navbar-nav, 
.navbar-nav-wrapper, .navbar-brand, .desktop-only, .header1 {
	/* Essential for dropdown visibility */
	overflow: visible !important;
	max-height: none !important;
	contain: none !important;
	clip: none !important;
	clip-path: none !important;
}

/* CSS Reset untuk header */
body, html {
	margin: 0 !important;
	padding: 0 !important;
	position: static !important;
	overflow-x: visible !important;
	overflow-y: auto !important;
	transform: none !important;
}

/* Force header container tanpa margin/padding */
.header1,
.desktop-only {
	margin: 0 !important;
	padding: 0 !important;
	position: static !important;
	overflow: visible !important;
	transform: none !important;
	will-change: auto !important;
}

/* Main Header - Force Sticky dengan vendor prefixes */
.main-header {
	position: -webkit-sticky !important;
	position: -moz-sticky !important;
	position: -ms-sticky !important;
	position: -o-sticky !important;
	position: sticky !important;
	top: 0 !important;
	left: 0 !important;
	right: 0 !important;
	z-index: 1000 !important;
	background: rgba(255, 255, 255, 0.98) !important;
	backdrop-filter: blur(10px) !important;
	-webkit-backdrop-filter: blur(10px) !important;
	box-shadow: 0 2px 20px rgba(0,0,0,0.08) !important;
	border-bottom: 1px solid rgba(0,0,0,0.05) !important;
	transition: all 0.3s ease !important;
	width: 100% !important;
	margin: 0 !important;
	padding: 0 1.5rem !important; /* Add horizontal padding instead of container */
	/* REMOVED: contain: layout style paint !important; */
	/* REMOVED: will-change: transform !important; */
	/* REMOVED: transform: translateZ(0) !important; */
	/* Force block display */
	display: block !important;
	min-height: 60px !important;
	/* CRITICAL: Allow dropdown overflow */
	overflow: visible !important;
}

/* Force all parent containers to not interfere */
.header1,
.desktop-only,
.navbar-brand,
.navbar-nav-wrapper {
	margin: 0 !important;
	padding: 0 !important;
	position: static !important;
	overflow: visible !important;
	transform: none !important;
	contain: none !important;
	height: auto !important;
	max-height: none !important;
	min-height: auto !important;
}

/* Force header containers to not clip dropdown content */
.main-header,
.navbar,
.navbar-nav,
.nav-item,
.navbar-collapse,
.navbar-nav-wrapper,
.navbar-brand,
.container,
.container-fluid {
	overflow: visible !important;
	height: auto !important;
	max-height: none !important;
	contain: none !important;
	clip: none !important;
	clip-path: none !important;
	min-height: auto !important;
}

/* Force higher z-index for all dropdowns and interactive elements in header */
.main-header .dropdown-menu,
.main-header .search-dropdown,
.header1 .dropdown-menu,
.header1 .search-dropdown {
	z-index: 999999 !important;
}

/* Override Bootstrap dropdown z-index globally within header */
.main-header .dropdown-menu.show,
.header1 .dropdown-menu.show {
	z-index: 999999 !important;
}

/* Extra override for specific dropdown scenarios */
.dropdown-menu,
.dropdown-menu.show {
	z-index: 999999 !important;
	overflow: visible !important;
	height: auto !important;
	max-height: none !important;
	min-height: auto !important;
}

/* Force dropdown content visibility */
.dropdown-menu.show,
.search-dropdown.show {
	display: block !important;
	opacity: 1 !important;
	visibility: visible !important;
	overflow: visible !important;
	height: auto !important;
	max-height: 500px !important;
	min-height: auto !important;
}

.main-header.scrolled {
	box-shadow: 0 4px 30px rgba(0,0,0,0.12);
	background: rgba(255, 255, 255, 0.99);
	backdrop-filter: blur(15px);
}

.main-header .navbar {
	padding: 0.5rem 0; /* Reduced vertical padding */
	min-height: 55px; /* Reduced height */
	align-items: center;
	width: 100%; /* Full width */
	max-width: none; /* Remove max-width constraint */
}

/* Logo Styles */
.navbar-brand {
	margin-right: 1.5rem; /* Reduced margin */
	flex-shrink: 0;
}

.navbar-brand img {
	height: 40px; /* Slightly smaller logo */
	transition: all 0.3s ease;
}

.main-header.scrolled .navbar-brand img {
	height: 35px; /* Smaller on scroll */
}

/* Navigation Menu Wrapper */
.navbar-nav-wrapper {
	flex: 1;
	display: flex;
	justify-content: flex-start;
	margin-right: 1rem; /* Reduced margin */
	overflow: visible !important; /* CRITICAL: Allow dropdown overflow */
	height: auto !important;
	max-height: none !important;
	min-height: auto !important;
}

/* Navigation Menu Override */
.navbar-nav {
	display: flex;
	align-items: center;
	gap: 0; /* No gap between items */
	list-style: none;
	margin: 0;
	padding: 0;
	flex-direction: row;
	background: rgba(248, 249, 250, 0.8);
	backdrop-filter: blur(5px);
	border-radius: 8px; /* Smaller border radius */
	padding: 0.2rem 0.3rem; /* Reduced padding */
	box-shadow: 0 2px 8px rgba(0,0,0,0.06);
	white-space: nowrap; /* Prevent wrapping */
	overflow: visible !important; /* CRITICAL: Allow dropdown overflow */
	height: auto !important;
	max-height: none !important;
	min-height: auto !important;
}

.navbar-nav .nav-item .nav-link {
	color: #6c757d;
	text-decoration: none;
	padding: 6px 10px; /* Reduced padding significantly */
	font-weight: 500;
	font-size: 13px; /* Smaller font */
	transition: all 0.3s ease;
	display: flex;
	align-items: center;
	gap: 0.2rem; /* Smaller gap */
	border-radius: 6px; /* Smaller border radius */
	white-space: nowrap;
	margin: 0; /* No margin between items */
}

.navbar-nav .nav-item .nav-link:hover {
	background: rgba(255, 255, 255, 0.8);
	color: #495057;
	box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.navbar-nav .nav-item.active .nav-link {
	color: white;
	background: var(--theme-light, linear-gradient(135deg, #667eea 0%, #764ba2 100%));
	box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

/* Dropdown Hover Behavior */
.navbar-nav .nav-item {
	position: relative;
}

/* Ensure hover works with CSS alone as fallback */
.navbar-nav .dropdown:hover > .dropdown-menu,
.navbar-nav .nav-item.dropdown:hover > .dropdown-menu {
	display: block !important;
	opacity: 1 !important;
	visibility: visible !important;
	position: fixed !important;
	/* JavaScript will set proper top/left positioning */
	z-index: 999999 !important;
	background: white !important;
	border: 1px solid #e9ecef !important;
	border-radius: 8px !important;
	box-shadow: 0 8px 25px rgba(0,0,0,0.15) !important;
	min-width: 200px !important;
	max-height: none !important;
	overflow: visible !important;
	padding: 0.5rem 0 !important;
	margin: 0 !important;
	/* Override any conflicting styles */
	transform: none !important;
	contain: none !important;
	clip: none !important;
	clip-path: none !important;
}

/* ENHANCED: Make dropdown menu items visible and properly styled */
.navbar-nav .dropdown-menu .dropdown-item {
	display: block !important;
	padding: 0.4rem 0.8rem !important; /* Reduced padding */
	color: #495057 !important;
	text-decoration: none !important;
	background: transparent !important;
	border: none !important;
	width: 100% !important;
	text-align: left !important;
	white-space: nowrap !important;
	font-size: 12px !important; /* Smaller than main menu (13px) */
	font-weight: 400 !important; /* Lighter weight */
	transition: all 0.2s ease !important;
	line-height: 1.3 !important;
}

.navbar-nav .dropdown-menu .dropdown-item:hover {
	background: #f8f9fa !important;
	color: #495057 !important;
	text-decoration: none !important;
}

.navbar-nav .dropdown-menu .dropdown-item:focus {
	background: #e9ecef !important;
	color: #495057 !important;
	outline: none !important;
}

.navbar-nav .dropdown-toggle::after {
	transition: transform 0.3s ease;
}

.navbar-nav .dropdown:hover .dropdown-toggle::after,
.navbar-nav .nav-item.dropdown:hover .dropdown-toggle::after {
	transform: rotate(180deg);
}

/* Search Toggle Button and Dropdown */
.search-toggle-container {
	position: relative;
	flex-shrink: 0;
	margin-right: 0.5rem; /* Reduced margin */
}

.search-dropdown {
	position: fixed !important;
	z-index: 999999 !important;
	background: white !important;
	border: 1px solid #e9ecef !important;
	border-radius: 12px !important;
	box-shadow: 0 8px 25px rgba(0,0,0,0.15) !important;
	padding: 1rem !important;
	min-width: 350px !important;
	max-width: 350px !important;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.3s ease, visibility 0.3s ease;
	overflow: visible !important;
	height: auto !important;
	max-height: none !important;
	/* Initial positioning - will be overridden by JavaScript */
	top: -9999px !important;
	left: -9999px !important;
	right: auto !important;
	bottom: auto !important;
	margin: 0 !important;
	transform: none !important;
}

.search-dropdown.show {
	opacity: 1 !important;
	visibility: visible !important;
	/* Debug border to help identify positioning */
	border: 2px solid #007bff !important;
}

.search-dropdown::before {
	content: '';
	position: absolute;
	top: -6px;
	left: var(--arrow-left, 320px); /* Default to right side, will be set by JavaScript */
	width: 12px;
	height: 12px;
	background: white;
	border: 1px solid #e9ecef;
	border-bottom: none;
	border-right: none;
	transform: rotate(45deg);
	z-index: 1000000;
}

.search-dropdown-content {
	position: relative;
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.search-dropdown .search-input {
	border: 2px solid #e9ecef;
	border-radius: 8px;
	padding: 0.75rem 1rem;
	flex: 1;
	font-size: 0.9rem;
	transition: all 0.3s ease;
	background: #f8f9fa;
}

.search-dropdown .search-input:focus {
	outline: none;
	background: white;
	border-color: var(--theme-hex-light, #667eea);
	box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

.search-submit-btn {
	border: none;
	border-radius: 8px;
	width: 40px;
	height: 40px;
	display: flex;
	align-items: center;
	justify-content: center;
	color: white;
	transition: all 0.3s ease;
	cursor: pointer;
	background: var(--theme-light, linear-gradient(135deg, #667eea 0%, #764ba2 100%));
	flex-shrink: 0;
}

.search-submit-btn:hover {
	background: var(--theme-hover, linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%));
	transform: scale(1.05);
}

/* Original Search Container (now hidden) */
.search-container {
	position: relative;
	width: 280px;
	margin-right: 1.5rem;
	flex-shrink: 0;
}

.search-input {
	border: 2px solid #e9ecef;
	border-radius: 20px;
	padding: 0.6rem 2.5rem 0.6rem 1rem;
	width: 100%;
	font-size: 0.85rem;
	transition: all 0.3s ease;
	background: #f8f9fa;
}

.search-input:focus {
	outline: none;
	background: white;
	border-color: var(--theme-hex-light, #667eea);
	box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

.search-btn {
	position: absolute;
	right: 6px;
	top: 50%;
	transform: translateY(-50%);
	border: none;
	border-radius: 50%;
	width: 32px;
	height: 32px;
	display: flex;
	align-items: center;
	justify-content: center;
	color: white;
	transition: all 0.3s ease;
	cursor: pointer;
	background: var(--theme-light, linear-gradient(135deg, #667eea 0%, #764ba2 100%));
}

.search-btn:hover {
	background: var(--theme-hover, linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%));
	transform: translateY(-50%) scale(1.05);
}

.search-btn:hover {
	transform: translateY(-50%) scale(1.05);
}

/* Header Actions */
.header-actions {
	display: flex;
	align-items: center;
	gap: 0.4rem; /* Reduced gap significantly */
	flex-shrink: 0; /* Prevent shrinking */
}

.action-item {
	position: relative;
	display: flex;
	align-items: center;
	gap: 0.3rem; /* Reduced gap */
	text-decoration: none;
	color: #495057;
	transition: all 0.3s ease;
	padding: 0.3rem; /* Reduced padding */
	border-radius: 8px; /* Smaller border radius */
}

/* Search button specific styling (icon only, compact) */
.search-toggle-btn.action-item {
	padding: 0.4rem; /* Slightly reduced */
	gap: 0;
	background: rgba(248, 249, 250, 0.8);
	border: 1px solid rgba(0,0,0,0.05);
	backdrop-filter: blur(5px);
}

.search-toggle-btn .action-icon {
	width: 28px; /* Smaller icon */
	height: 28px;
	background: rgba(102, 126, 234, 0.15);
	color: var(--theme-hex-light, #667eea);
	border-radius: 50%;
}

.search-toggle-btn:hover {
	background: rgba(255, 255, 255, 0.9);
	transform: translateY(-1px);
	box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.search-toggle-btn:hover .action-icon {
	background: var(--theme-light, linear-gradient(135deg, #667eea 0%, #764ba2 100%));
	color: white;
	transform: scale(1.05);
}

.action-item:hover {
	text-decoration: none;
}

.action-icon {
	position: relative;
	width: 36px; /* Smaller */
	height: 36px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 8px; /* Smaller border radius */
	font-size: 1rem; /* Smaller font */
	transition: all 0.3s ease;
}

.action-item:hover .action-icon {
	color: white;
	transform: scale(1.05);
}

.action-badge {
	position: absolute;
	top: -5px;
	right: -5px;
	background: #dc3545;
	color: white;
	border-radius: 50%;
	min-width: 20px;
	height: 20px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 0.75rem;
	font-weight: 600;
	z-index: 10;
	box-shadow: 0 2px 6px rgba(220, 53, 69, 0.3);
	border: 2px solid #fff;
	line-height: 1;
}

/* Auth Buttons */
.auth-buttons {
	display: flex;
	gap: 0.5rem;
}

.btn-auth {
	padding: 0.5rem 1rem;
	border-radius: 8px;
	font-weight: 500;
	font-size: 0.9rem;
	text-decoration: none;
	transition: all 0.3s ease;
	border: 2px solid transparent;
}

.btn-auth.btn-outline {
	background: transparent;
}

.btn-auth.btn-outline:hover {
	color: white;
	transform: translateY(-1px);
}

.btn-auth.btn-filled {
	color: white;
}

.btn-auth.btn-filled:hover {
	transform: translateY(-1px);
}

/* User Button */
.user-dropdown {
	position: relative;
}

.user-btn {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	padding: 0.5rem 1rem;
	border-radius: 12px;
	text-decoration: none;
	transition: all 0.3s ease;
	max-width: 200px;
}

.user-btn:hover {
	color: white;
	text-decoration: none;
	transform: translateY(-1px);
}

.user-name {
	max-width: 120px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	font-size: 0.9rem;
}

.user-avatar {
	width: 32px;
	height: 32px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	color: white;
	font-weight: 600;
}

.sticky-auth-buttons .user-avatar {
	width: 32px;
	height: 32px;
	border-radius: 50%;
	color: white;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 600;
	font-size: 14px;
}

/* Navigation wrapper untuk center alignment */
.navbar-nav-wrapper {
	display: flex;
	justify-content: center;
	width: 100%;
}

/* Untuk sticky state */
.navigation-menu.is-sticky .navbar-nav-wrapper {
	flex: 1;
	display: flex;
	justify-content: center;
}

/* Dropdown styles */
.navbar-nav .dropdown-toggle::after {
	content: "\f078";
	font-family: "Font Awesome 5 Free";
	font-weight: 900;
	border: none;
	margin-left: 0.5rem;
	font-size: 0.8em;
}

.navbar-nav .dropdown-menu {
	background: white !important;
	border: 1px solid #e9ecef !important;
	border-radius: 8px !important;
	box-shadow: 0 4px 12px rgba(0,0,0,0.15) !important;
	min-width: 200px !important;
	padding: 6px 0 !important; /* Reduced padding */
	margin-top: 0 !important;
	z-index: 999999 !important;
	overflow: visible !important;
	height: auto !important;
	max-height: none !important;
	min-height: auto !important;
	/* CRITICAL: Use fixed positioning to escape sticky parent */
	position: fixed !important;
	/* Reset default positioning */
	top: auto !important;
	left: auto !important;
	right: auto !important;
	bottom: auto !important;
	transform: none !important;
	/* Smooth transitions */
	opacity: 0;
	visibility: hidden;
	transition: all 0.2s ease;
	pointer-events: none;
	/* ESCAPE FROM ANY PARENT CLIPPING */
	contain: none !important;
	clip: none !important;
	clip-path: none !important;
	/* Ensure dropdown appears above everything */
	will-change: transform !important;
}

.navbar-nav .dropdown-menu.show,
.navbar-nav .dropdown:hover .dropdown-menu,
.navbar-nav .nav-item.dropdown:hover .dropdown-menu {
	opacity: 1 !important;
	visibility: visible !important;
	pointer-events: auto !important;
	display: block !important;
	/* Force positioning and visibility */
	position: fixed !important;
	z-index: 999999 !important;
	/* Ensure it's above everything */
	transform: none !important;
	contain: none !important;
	clip: none !important;
	clip-path: none !important;
	overflow: visible !important;
}

.navbar-nav .dropdown-item {
	color: #495057;
	padding: 6px 12px; /* Reduced padding */
	font-size: 12px; /* Smaller than main menu */
	font-weight: 400; /* Lighter weight */
	text-decoration: none;
	transition: all 0.3s ease;
	display: flex;
	align-items: center;
	gap: 0.3rem; /* Smaller gap */
	line-height: 1.3;
}

.navbar-nav .dropdown-item:hover {
	background: #f8f9fa;
}

.navbar-nav .dropdown-item.active {
	color: white;
}

.navbar-nav .dropdown-divider {
	margin: 4px 0;
	border-color: #e9ecef;
}

/* External link styles */
.external-link .fa-external-link-alt {
	font-size: 0.75em;
	opacity: 0.7;
}

/* Mobile Header Styles */
.mobile-header {
	background: white;
	box-shadow: 0 2px 10px rgba(0,0,0,0.08);
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 1000;
	padding: 0.75rem 0;
}

.mobile-actions {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 0 1rem;
}

.mobile-logo img {
	height: 40px;
	width: auto;
}

.mobile-right-actions {
	display: flex;
	align-items: center;
	gap: 0.75rem;
}

/* Mobile Action Buttons */
.mobile-search-toggle,
.mobile-action-btn {
	background: rgba(102, 126, 234, 0.15);
	color: var(--theme-hex-light, #667eea);
	border: none;
	border-radius: 50%;
	width: 40px;
	height: 40px;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.3s ease;
	cursor: pointer;
	text-decoration: none;
	position: relative;
}

.mobile-search-toggle:hover,
.mobile-action-btn:hover {
	background: var(--theme-light, linear-gradient(135deg, #667eea 0%, #764ba2 100%));
	color: white !important;
	transform: scale(1.05);
	text-decoration: none;
}

.mobile-action-badge {
	position: absolute;
	top: -5px;
	right: -5px;
	background: #ff4757;
	color: white;
	font-size: 0.7rem;
	font-weight: bold;
	padding: 0.1rem 0.3rem;
	border-radius: 10px;
	min-width: 18px;
	height: 18px;
	display: flex;
	align-items: center;
	justify-content: center;
}

/* Mobile Search Dropdown */
.mobile-search-dropdown {
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	z-index: 1050;
	background: white;
	border-bottom: 1px solid #e9ecef;
	box-shadow: 0 4px 15px rgba(0,0,0,0.1);
	padding: 1rem;
	opacity: 0;
	visibility: hidden;
	transform: translateY(-10px);
	transition: all 0.3s ease;
}

.mobile-search-dropdown.show {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.mobile-search-content {
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.mobile-search-dropdown .search-input {
	border: 2px solid #e9ecef;
	border-radius: 20px;
	padding: 0.75rem 1rem;
	flex: 1;
	font-size: 0.9rem;
	background: #f8f9fa;
}

.mobile-search-dropdown .search-input:focus {
	outline: none;
	background: white;
	border-color: var(--theme-hex-light, #667eea);
}

.mobile-search-dropdown .search-btn {
	border: none;
	border-radius: 50%;
	width: 40px;
	height: 40px;
	background: var(--theme-light, linear-gradient(135deg, #667eea 0%, #764ba2 100%));
	color: white;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: all 0.3s ease;
}

.mobile-search-dropdown .search-btn:hover {
	background: var(--theme-hover, linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%));
	transform: scale(1.05);
}

.mobile-actions {
	display: flex;
	align-items: center;
	gap: 1rem;
}

.mobile-logo img {
	height: 35px;
}

.mobile-search {
	flex: 1;
	position: relative;
}

.mobile-search .search-input {
	padding: 0.5rem 2.5rem 0.5rem 1rem;
	font-size: 0.85rem;
	border-radius: 20px;
}

.mobile-search .search-btn {
	width: 30px;
	height: 30px;
}

.mobile-cart {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 45px;
	height: 45px;
	border-radius: 12px;
	text-decoration: none;
	transition: all 0.3s ease;
	font-size: 1.2rem;
}

.mobile-cart:hover {
	color: white;
	text-decoration: none;
	transform: scale(1.05);
}

.mobile-cart-badge {
	position: absolute;
	top: -5px;
	right: -5px;
	background: #dc3545;
	color: white;
	border-radius: 50%;
	min-width: 18px;
	height: 18px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 0.7rem;
	font-weight: 600;
	z-index: 10;
	box-shadow: 0 2px 6px rgba(220, 53, 69, 0.3);
	border: 2px solid #fff;
	line-height: 1;
}

.menu-toggle {
	background: none;
	border: none;
	font-size: 1.2rem;
	padding: 0.5rem;
}

/* Bottom Navigation */
.bottom-navigation {
	position: fixed;
	bottom: 0;
	left: 0;
	right: 0;
	background: rgba(255, 255, 255, 0.98);
	backdrop-filter: blur(20px);
	border-top: 1px solid #e9ecef;
	z-index: 1000;
	padding: 0.75rem 0 1rem 0;
	border-radius: 20px 20px 0 0;
	box-shadow: 0 -4px 20px rgba(0,0,0,0.1);
}

.bottom-nav-items {
	display: flex;
	justify-content: space-around;
	align-items: center;
	max-width: 100%;
	position: relative;
}

.bottom-nav-item {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.25rem;
	text-decoration: none;
	color: #6c757d;
	transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
	padding: 0.5rem 0.25rem;
	border-radius: 15px;
	position: relative;
	min-width: 60px;
}

.bottom-nav-item:hover {
	text-decoration: none;
	transform: translateY(-2px);
}

.bottom-nav-item.active {
	color: #6c757d;
}

.nav-icon-wrapper {
	position: relative;
	width: 32px;
	height: 32px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 12px;
	background: transparent;
	transition: all 0.3s ease;
}

.bottom-nav-item:hover .nav-icon-wrapper {
	transform: scale(1.1);
}

.bottom-nav-icon {
	font-size: 1.1rem;
}

.bottom-nav-label {
	font-size: 0.65rem;
	font-weight: 500;
	text-align: center;
}

.mobile-nav-badge {
	position: absolute;
	top: -5px;
	right: -5px;
	background: #dc3545;
	color: white;
	border-radius: 50%;
	min-width: 18px;
	height: 18px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 0.6rem;
	font-weight: 600;
	z-index: 10;
	box-shadow: 0 2px 6px rgba(220, 53, 69, 0.3);
	border: 2px solid #fff;
	line-height: 1;
}

/* Responsive Design */
@media (max-width: 1199.98px) {
	.user-btn {
		max-width: 160px;
	}
	.user-name {
		max-width: 100px;
	}
}

@media (max-width: 991.98px) {
	.desktop-only { 
		display: none !important; 
	}
	.mobile-only { 
		display: block !important; 
	}
	body { 
		padding-bottom: 75px; 
	}
	.header-actions {
		gap: 0.5rem;
	}
	.user-btn {
		padding: 0.5rem;
		max-width: 120px;
	}
}

@media (min-width: 992px) {
	.desktop-only { 
		display: block !important; 
	}
	.mobile-only { 
		display: none !important; 
	}
	/* Add padding to body to prevent navigation overlap */
	body {
		padding-top: 0 !important;
	}
	/* Style for main content area */
	.main-content {
		position: relative;
		z-index: 1;
	}
	/* Ensure navigation doesn't cover content */
	.navigation-menu.nav-visible {
		position: fixed !important;
		z-index: 50 !important;
	}
}

/* New Single-Row Header Action Styles */
.header-actions {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	flex-shrink: 0;
}

.action-item {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.5rem 0.75rem;
	border-radius: 12px;
	text-decoration: none;
	color: #6c757d;
	transition: all 0.3s ease;
	background: rgba(248, 249, 250, 0.8);
	border: 1px solid rgba(0,0,0,0.05);
	backdrop-filter: blur(5px);
}

.action-item:hover {
	color: #495057;
	background: rgba(255, 255, 255, 0.9);
	transform: translateY(-1px);
	box-shadow: 0 4px 12px rgba(0,0,0,0.1);
	text-decoration: none;
}

.action-item.action-primary {
	background: var(--theme-light, linear-gradient(135deg, #667eea 0%, #764ba2 100%));
	color: white;
	border-color: transparent;
}

.action-item.action-primary:hover {
	background: var(--theme-hover, linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%));
	color: white;
	box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.action-item.user-action {
	max-width: 180px;
}

.action-icon {
	width: 32px;
	height: 32px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(102, 126, 234, 0.15);
	color: var(--theme-hex-light, #667eea);
	font-size: 14px;
	font-weight: 600;
	transition: all 0.3s ease;
	position: relative;
	flex-shrink: 0;
}

.action-item:hover .action-icon {
	background: var(--theme-light, linear-gradient(135deg, #667eea 0%, #764ba2 100%));
	color: white;
	transform: scale(1.05);
}

.action-item.action-primary .action-icon {
	background: rgba(255, 255, 255, 0.2);
	color: white;
}

.action-item.action-primary:hover .action-icon {
	background: rgba(255, 255, 255, 0.3);
}

.action-badge {
	position: absolute;
	top: -6px;
	right: -6px;
	background: #dc3545;
	color: white;
	border-radius: 50%;
	width: 18px;
	height: 18px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 10px;
	font-weight: 600;
	border: 2px solid white;
	box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.action-text {
	font-size: 14px;
	font-weight: 500;
	white-space: nowrap;
}

/* User Avatar in Action */
.action-item .user-avatar {
	background: var(--theme-light, linear-gradient(135deg, #667eea 0%, #764ba2 100%));
	color: white;
}

.action-item .user-name {
	max-width: 100px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	font-size: 14px;
}

/* Auth Buttons for Guest Users */
.auth-buttons {
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

/* Responsive adjustments for new layout */
@media (max-width: 1200px) {
	.action-text {
		display: none;
	}
	.header-actions {
		gap: 0.5rem;
	}
	.search-dropdown {
		min-width: 300px;
	}
}

@media (max-width: 992px) {
	.navbar-nav-wrapper {
		margin-right: 1rem;
	}
	.search-toggle-container {
		margin-right: 1rem;
	}
	.search-dropdown {
		min-width: 280px;
		right: -20px;
	}
}

/* Additional responsive adjustments for desktop screens */
@media (max-width: 1600px) {
	.navbar-nav .nav-item .nav-link {
		padding: 5px 8px; /* Even more compact for smaller desktop screens */
		font-size: 12px;
	}
	
	.header-actions {
		gap: 0.3rem; /* Even smaller gap */
	}
}

@media (max-width: 1400px) {
	.navbar-nav .nav-item .nav-link {
		padding: 4px 6px; /* Ultra compact */
		font-size: 11px;
	}
	
	.navbar-brand {
		margin-right: 1rem;
	}
	
	.navbar-brand img {
		height: 35px;
	}
	
	.action-icon {
		width: 32px;
		height: 32px;
		font-size: 0.9rem;
	}
	
	.action-text {
		font-size: 12px;
	}
}
