/* ====================================
   MODERN TOP NAVBAR - PROFESSIONAL DESIGN
   ==================================== */

/* Main Navbar Container */
.navbar {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border-bottom: 1px solid #e2e8f0;
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05), 0 1px 20px rgba(0, 0, 0, 0.04);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  min-height: 70px;
}

.navbar.scrolled,
.navbar.navbar-scrolled {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1), 0 1px 40px rgba(0, 0, 0, 0.08);
  background: linear-gradient(135deg, #ffffff 0%, #f1f5f9 100%);
  border-bottom: 1px solid #cbd5e1;
}

.navbar-container {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 2rem;
  padding: 0.75rem 2rem;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  position: relative;
  min-height: 70px;
}

/* Navbar Sections */
.navbar-left {
  display: flex;
  align-items: center;
  justify-self: start;
}

.navbar-center {
  display: flex;
  align-items: center;
  justify-content: center;
  justify-self: center;
  overflow: visible;
  width: 100%;
  max-width: 600px;
}

.navbar-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  justify-self: end;
}

/* Enhanced Brand/Logo */
.navbar-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  flex-shrink: 0;
  transition: all 0.3s ease;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  position: relative;
}

.brand-text {
  font-size: 1.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #06b6d4 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.025em;
}

.brand-badge {
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  box-shadow: 0 2px 4px rgba(99, 102, 241, 0.2);
}

.navbar-brand:hover {
  transform: scale(1.02);
  text-decoration: none;
}

.navbar-brand::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #6366f1, #8b5cf6);
  transition: width 0.3s ease;
}

.navbar-brand:hover::after {
  width: 100%;
}

.navbar-logo {
  height: 40px;
  width: 40px;
  transition: transform 0.3s ease;
  filter: drop-shadow(0 2px 4px rgba(99, 102, 241, 0.2));
}

.navbar-brand:hover .navbar-logo {
  transform: scale(1.05);
}

/* Enhanced Navigation Links */
.navbar-nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
  white-space: nowrap;
}

.navbar-nav li {
  position: relative;
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  font-weight: 600;
  color: #475569;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
  position: relative;
  font-size: 0.875rem;
  letter-spacing: -0.01em;
  background: transparent;
  border: 1px solid transparent;
  flex-shrink: 0;
}

.nav-link:hover {
  color: #6366f1;
  text-decoration: none;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.08) 0%, rgba(139, 92, 246, 0.05) 100%);
  border-color: rgba(99, 102, 241, 0.2);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.15);
}

.nav-link.active {
  color: #6366f1;
  font-weight: 700;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(139, 92, 246, 0.08) 100%);
  border-color: rgba(99, 102, 241, 0.3);
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.2);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -1.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: 30px;
  height: 3px;
  background: linear-gradient(90deg, #6366f1, #8b5cf6);
  border-radius: 2px;
  box-shadow: 0 2px 4px rgba(99, 102, 241, 0.3);
}

/* Enhanced Dropdown Styles */
.dropdown {
  position: relative;
}

.dropdown-toggle {
  background: none;
  border: 1px solid transparent;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  font-weight: 600;
  color: #475569;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
  font-size: 0.875rem;
  letter-spacing: -0.01em;
  flex-shrink: 0;
}

.dropdown-toggle:hover {
  color: #6366f1;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.08) 0%, rgba(139, 92, 246, 0.05) 100%);
  border-color: rgba(99, 102, 241, 0.2);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.15);
}

.dropdown-toggle svg {
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  width: 16px;
  height: 16px;
}

.dropdown:hover .dropdown-toggle svg {
  transform: rotate(180deg) scale(1.1);
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.1), 0 8px 25px -5px rgba(0, 0, 0, 0.1);
  padding: 1rem 0;
  min-width: 280px;
  max-width: 320px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1001;
  max-height: calc(100vh - 100px);
  overflow-y: auto;
  backdrop-filter: blur(12px);
}

.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1.5rem;
  margin: 0 0.5rem;
  border-radius: 12px;
  color: #475569;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-size: 0.9375rem;
  font-weight: 500;
  border: 1px solid transparent;
}

.dropdown-item:hover {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.08) 0%, rgba(139, 92, 246, 0.05) 100%);
  color: #6366f1;
  text-decoration: none;
  border-color: rgba(99, 102, 241, 0.2);
  transform: translateX(4px);
}

.dropdown-item svg {
  width: 18px;
  height: 18px;
  color: #64748b;
  transition: all 0.3s ease;
}

.dropdown-item:hover svg {
  color: #6366f1;
  transform: scale(1.1);
}

/* Enhanced Dropdown Section Headers */
.dropdown-menu h6 {
  padding: 0.75rem 1.5rem 0.5rem;
  margin: 0.75rem 0 0.25rem;
  font-size: 0.75rem;
  color: #64748b;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.1em;
  border-bottom: 1px solid #e2e8f0;
  margin-left: 0.5rem;
  margin-right: 0.5rem;
  padding-bottom: 0.5rem;
}

/* User Profile Dropdown */
.user-avatar {
  background: var(--primary);
  color: var(--white);
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.8125rem;
  flex-shrink: 0;
}

.user-info {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: 0.75rem 1.25rem;
  border-bottom: 1px solid var(--gray-100);
  margin-bottom: var(--space-2);
}

.user-name {
  font-weight: 600;
  color: var(--gray-900);
  font-size: 0.875rem;
  line-height: 1.3;
}

.user-email {
  font-size: 0.75rem;
  color: var(--gray-500);
  line-height: 1.3;
}

/* Special Dropdown Items */
.dropdown-item.danger {
  color: var(--error);
}

.dropdown-item.danger:hover {
  background: rgba(239, 68, 68, 0.05);
  color: var(--error);
}

.dropdown-divider {
  height: 1px;
  background: var(--gray-100);
  margin: var(--space-2) 0;
}

/* Right Section Components */
.search-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: white;
  color: #64748b;
  cursor: pointer;
  transition: all 0.3s ease;
}

.search-toggle:hover {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.08) 0%, rgba(139, 92, 246, 0.05) 100%);
  border-color: rgba(99, 102, 241, 0.2);
  color: #6366f1;
  transform: translateY(-1px);
}

.info-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: white;
  color: #64748b;
  cursor: pointer;
  transition: all 0.3s ease;
}

.info-toggle:hover {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.08) 0%, rgba(139, 92, 246, 0.05) 100%);
  border-color: rgba(99, 102, 241, 0.2);
  color: #6366f1;
  transform: translateY(-1px);
}

.user-toggle {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 1rem;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: white;
  cursor: pointer;
  transition: all 0.3s ease;
}

.user-toggle:hover {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.08) 0%, rgba(139, 92, 246, 0.05) 100%);
  border-color: rgba(99, 102, 241, 0.2);
  transform: translateY(-1px);
}

.user-avatar {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  color: white;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.875rem;
}

.user-info-compact {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
}

.user-name {
  font-size: 0.875rem;
  font-weight: 600;
  color: #1f2937;
  line-height: 1;
}

.user-status {
  font-size: 0.75rem;
  color: #6366f1;
  font-weight: 600;
  line-height: 1;
}

/* Auth Buttons */
.auth-buttons {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.btn-login {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1rem;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: white;
  color: #475569;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.875rem;
  transition: all 0.3s ease;
}

.btn-login:hover {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.08) 0%, rgba(139, 92, 246, 0.05) 100%);
  border-color: rgba(99, 102, 241, 0.2);
  color: #6366f1;
  text-decoration: none;
  transform: translateY(-1px);
}

.btn-signup {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  color: white;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.875rem;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.btn-signup:hover {
  background: linear-gradient(135deg, #5855eb 0%, #7c3aed 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(99, 102, 241, 0.4);
  color: white;
  text-decoration: none;
}

/* Enhanced CTA Button */
.navbar-cta {
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.9375rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: none;
  cursor: pointer;
  margin-left: 1rem;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
  position: relative;
  overflow: hidden;
}

.navbar-cta:hover {
  background: linear-gradient(135deg, #5855eb 0%, #7c3aed 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(99, 102, 241, 0.4);
}

.navbar-cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.navbar-cta:hover::before {
  left: 100%;
}

/* Enhanced Mobile Menu Styles */
.mobile-toggle {
  display: none;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.08) 0%, rgba(139, 92, 246, 0.05) 100%);
  border: 1px solid rgba(99, 102, 241, 0.2);
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  z-index: 1010;
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.1);
}

.mobile-toggle:hover {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.12) 0%, rgba(139, 92, 246, 0.08) 100%);
  border-color: rgba(99, 102, 241, 0.3);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.2);
}

.hamburger,
.hamburger::before,
.hamburger::after {
  display: block;
  width: 24px;
  height: 3px;
  background: linear-gradient(90deg, #6366f1, #8b5cf6);
  transition: all 0.3s ease;
  border-radius: 2px;
}

.hamburger {
  position: relative;
}

.hamburger::before,
.hamburger::after {
  content: '';
  position: absolute;
  left: 0;
}

.hamburger::before {
  top: -7px;
  width: 24px;
}

.hamburger::after {
  top: 7px;
  width: 18px;
}

/* Mobile active states */
.mobile-toggle.active .hamburger {
  background: transparent;
}

.mobile-toggle.active .hamburger::before {
  transform: rotate(45deg);
  top: 0;
  width: 24px;
}

.mobile-toggle.active .hamburger::after {
  transform: rotate(-45deg);
  top: 0;
  width: 24px;
}

/* Enhanced Mobile Menu */
.mobile-menu {
  display: none;
  position: fixed;
  top: 86px;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  padding: 1.5rem;
  overflow-y: auto;
  z-index: 1000;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(20px);
  border-top: 1px solid #e2e8f0;
}

.mobile-menu.active {
  display: block;
  transform: translateX(0);
}

.mobile-menu-items {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.mobile-menu-item {
  padding: 1rem 1.25rem;
  text-decoration: none;
  color: #475569;
  font-weight: 600;
  border-radius: 12px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 1rem;
  border: 1px solid transparent;
  background: rgba(255, 255, 255, 0.7);
  margin-bottom: 0.25rem;
}

.mobile-menu-item:hover {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(139, 92, 246, 0.08) 100%);
  color: #6366f1;
  text-decoration: none;
  border-color: rgba(99, 102, 241, 0.2);
  transform: translateX(4px);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.15);
}

.mobile-menu-item svg {
  width: 20px;
  height: 20px;
  color: #64748b;
  transition: all 0.3s ease;
}

.mobile-menu-item:hover svg {
  color: #6366f1;
  transform: scale(1.1);
}

.mobile-menu-section {
  padding: 1.25rem 1.25rem 0.75rem;
  font-size: 0.8125rem;
  color: #64748b;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.1em;
  margin-top: 1rem;
  border-bottom: 2px solid #e2e8f0;
  margin-bottom: 0.5rem;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.05) 0%, rgba(139, 92, 246, 0.03) 100%);
  border-radius: 8px;
}

.mobile-auth-buttons {
  display: flex;
  gap: 1rem;
  padding: 1.5rem 1rem 0;
  margin-top: 1.5rem;
  border-top: 2px solid #e2e8f0;
}

/* Quick Tool Styles */
.quick-tool {
  border: 1px solid #e2e8f0 !important;
  background: rgba(255, 255, 255, 0.8) !important;
}

.quick-tool:hover {
  border-color: rgba(99, 102, 241, 0.3) !important;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(139, 92, 246, 0.08) 100%) !important;
}

.tool-label {
  font-size: 0.8125rem;
  font-weight: 500;
}

/* Mobile Menu Enhancements */
.mobile-menu-header {
  padding: 1rem 1.5rem;
  border-bottom: 2px solid #e2e8f0;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.05) 0%, rgba(139, 92, 246, 0.03) 100%);
}

.mobile-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.125rem;
  font-weight: 700;
  color: #1f2937;
}

.mobile-menu-item.featured {
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  position: relative;
}

.menu-item-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.menu-item-title {
  font-weight: 600;
  color: #1f2937;
  font-size: 0.9375rem;
}

.menu-item-desc {
  font-size: 0.8125rem;
  color: #64748b;
}

.menu-item-badge {
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  color: white;
  font-size: 0.6875rem;
  font-weight: 600;
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.mobile-auth-section {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 2px solid #e2e8f0;
}

.mobile-auth-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1rem 1.5rem;
  border-radius: 12px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  margin-bottom: 0.75rem;
}

.mobile-auth-btn.login {
  background: white;
  color: #475569;
  border: 2px solid #e2e8f0;
}

.mobile-auth-btn.login:hover {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.08) 0%, rgba(139, 92, 246, 0.05) 100%);
  border-color: rgba(99, 102, 241, 0.2);
  color: #6366f1;
  text-decoration: none;
}

.mobile-auth-btn.signup {
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  color: white;
  border: 2px solid transparent;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.mobile-auth-btn.signup:hover {
  background: linear-gradient(135deg, #5855eb 0%, #7c3aed 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(99, 102, 241, 0.4);
  color: white;
  text-decoration: none;
}

/* Right aligned dropdown menus */
.dropdown-menu-right {
  left: auto;
  right: 0;
  transform: translateX(0) translateY(-8px);
}

.dropdown:hover .dropdown-menu-right {
  transform: translateX(0) translateY(0);
}

/* User dropdown header */
.user-info-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid #e2e8f0;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.05) 0%, rgba(139, 92, 246, 0.03) 100%);
}

.user-avatar-large {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  color: white;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.125rem;
  flex-shrink: 0;
}

.user-details {
  flex: 1;
}

.user-name-full {
  font-weight: 600;
  color: #1f2937;
  font-size: 0.9375rem;
  line-height: 1.3;
  margin-bottom: 0.25rem;
}

.user-email {
  color: #64748b;
  font-size: 0.8125rem;
  line-height: 1.3;
  margin-bottom: 0.25rem;
}

.user-plan {
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  color: white;
  font-size: 0.6875rem;
  font-weight: 600;
  padding: 0.125rem 0.375rem;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: inline-block;
}

.logout-item {
  color: #dc2626 !important;
}

.logout-item:hover {
  background: rgba(220, 38, 38, 0.1) !important;
  color: #dc2626 !important;
}

/* Force horizontal layout */
.navbar-nav {
  flex-wrap: nowrap !important;
}

.navbar-nav li {
  display: inline-flex !important;
  flex-direction: row !important;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .navbar-container {
    gap: 1.5rem;
    padding: 0.75rem 1.5rem;
  }

  .navbar-nav {
    gap: 0.5rem;
    flex-wrap: nowrap;
  }

  .dropdown-menu {
    min-width: 260px;
  }
  
  .tool-label {
    display: none;
  }
  
  .nav-link {
    padding: 0.625rem 0.875rem;
    font-size: 0.8125rem;
  }
  
  .dropdown-toggle {
    padding: 0.625rem 0.875rem;
    font-size: 0.8125rem;
  }
}

@media (max-width: 768px) {
  .navbar-center {
    display: none;
  }

  .mobile-toggle {
    display: flex;
  }

  .navbar-container {
    grid-template-columns: auto 1fr auto;
    padding: 0.75rem 1rem;
    gap: 1rem;
  }

  .dropdown-menu {
    position: fixed;
    top: 86px;
    left: 1rem;
    right: 1rem;
    width: auto;
    max-width: none;
    transform: translateX(0) translateY(-8px);
  }
  
  .dropdown:hover .dropdown-menu {
    transform: translateX(0) translateY(0);
  }
}

@media (max-width: 480px) {
  .navbar-brand {
    font-size: 1.25rem;
  }

  .navbar-logo {
    height: 36px;
    width: 36px;
  }

  .mobile-menu {
    padding: 1rem;
    top: 86px;
  }
  
  .navbar-container {
    padding: 0.75rem 0.75rem;
  }
  
  .mobile-toggle {
    width: 40px;
    height: 40px;
  }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  .navbar *,
  .navbar *::before,
  .navbar *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* High contrast mode */
@media (prefers-contrast: high) {
  .navbar {
    border-bottom: 2px solid var(--gray-900);
  }

  .nav-link:hover,
  .dropdown-toggle:hover {
    outline: 2px solid var(--primary);
  }
}

/* Focus states for keyboard navigation */
.nav-link:focus-visible,
.dropdown-toggle:focus-visible,
.mobile-toggle:focus-visible,
.navbar-cta:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.dropdown-item:focus-visible {
  background: var(--primary-light);
  color: var(--primary-dark);
  outline: none;
}