/* ===================================
   ATOMIC LAB - NAVIGATION COMPONENTS
   Futuristic Navigation System
   =================================== */

/* ===================================
   1. ENHANCED NAVBAR
   =================================== */
.atomic-navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: linear-gradient(180deg, rgba(10, 10, 15, 0.98) 0%, rgba(10, 10, 15, 0.85) 100%);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0, 212, 255, 0.2);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.atomic-navbar.scrolled {
  padding: 0.5rem 0;
  background: rgba(10, 10, 15, 0.95);
  box-shadow: 0 4px 30px rgba(0, 212, 255, 0.1);
}

.navbar-container {
  max-width: 1600px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
  color: var(--neon-blue);
  font-weight: 900;
  font-size: 1.5rem;
  letter-spacing: 0.05em;
  position: relative;
}

.navbar-brand::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--neon-blue), var(--plasma-purple));
  transition: width 0.3s ease;
}

.navbar-brand:hover::after {
  width: 100%;
}

.navbar-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-item {
  position: relative;
}

.nav-link {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.5rem 1rem;
  position: relative;
  transition: all 0.3s ease;
  margin-top: 1%;
}

.nav-link::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--neon-blue);
  transition: width 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--neon-blue);
  text-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
}

.nav-link:hover::before,
.nav-link.active::before {
  width: 80%;
}

/* ===================================
   2. DROPDOWN MENUS
   =================================== */
.dropdown {
  position: relative;
}

.dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
}

.dropdown-toggle::after {
  content: '▼';
  font-size: 0.625rem;
  transition: transform 0.3s ease;
}

.dropdown.active .dropdown-toggle::after {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 200px;
  background: rgba(26, 29, 36, 0.98);
  border: 1px solid rgba(0, 212, 255, 0.2);
  border-radius: 8px;
  padding: 0.5rem 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.dropdown.active .dropdown-menu,
.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(10px);
}

.dropdown-item {
  display: block;
  padding: 0.75rem 1.5rem;
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: all 0.2s ease;
  position: relative;
}

.dropdown-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 0;
  background: var(--neon-blue);
  transition: height 0.2s ease;
}

.dropdown-item:hover {
  background: rgba(0, 212, 255, 0.1);
  color: var(--neon-blue);
  padding-left: 2rem;
}

.dropdown-item:hover::before {
  height: 60%;
}

/* ===================================
   3. MOBILE DRAWER
   =================================== */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--neon-blue);
  cursor: pointer;
  padding: 0.5rem;
  position: relative;
  z-index: 1100;
}

.mobile-menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: currentColor;
  margin: 5px 0;
  transition: all 0.3s ease;
  transform-origin: left center;
}

.mobile-menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg);
}

.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.mobile-menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg);
}

.mobile-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 280px;
  height: 100vh;
  background: rgba(10, 10, 15, 0.98);
  backdrop-filter: blur(20px);
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1050;
  overflow-y: auto;
  border-left: 1px solid rgba(0, 212, 255, 0.2);
}

.mobile-drawer.active {
  transform: translateX(0);
}

.mobile-drawer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 1040;
}

.mobile-drawer-overlay.active {
  opacity: 1;
  visibility: visible;
}

.mobile-nav {
  padding: 5rem 1.5rem 2rem;
}

.mobile-nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mobile-nav-item {
  margin-bottom: 0.5rem;
}

.mobile-nav-link {
  display: block;
  padding: 1rem;
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}

.mobile-nav-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0, 212, 255, 0.1), transparent);
  transition: left 0.5s ease;
}

.mobile-nav-link:hover {
  color: var(--neon-blue);
  background: rgba(0, 212, 255, 0.05);
}

.mobile-nav-link:hover::before {
  left: 100%;
}

/* ===================================
   4. BREADCRUMBS
   =================================== */
.atomic-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 0;
  font-size: 0.875rem;
}

.breadcrumb-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  position: relative;
}

.breadcrumb-link {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  transition: all 0.2s ease;
  position: relative;
  padding: 0.25rem 0.5rem;
}

.breadcrumb-link::before {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--neon-blue), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.breadcrumb-link:hover {
  color: var(--neon-blue);
  text-shadow: 0 0 5px rgba(0, 212, 255, 0.5);
}

.breadcrumb-link:hover::before {
  opacity: 1;
}

.breadcrumb-separator {
  color: rgba(255, 255, 255, 0.3);
  font-size: 0.75rem;
}

.breadcrumb-separator::before {
  content: '›';
  display: inline-block;
  animation: pulse-glow 2s ease-in-out infinite;
}

.breadcrumb-current {
  color: var(--neon-blue);
  font-weight: 600;
}

/* Atomic trail effect */
.breadcrumb-item::after {
  content: '';
  position: absolute;
  top: 50%;
  right: -0.5rem;
  width: 4px;
  height: 4px;
  background: var(--neon-blue);
  border-radius: 50%;
  transform: translateY(-50%);
  animation: particle-trail 2s ease-in-out infinite;
}

/* Pulse glow animation for breadcrumbs */
@keyframes pulse-glow {
  0%, 100% { opacity: 0.8; }
  50% { opacity: 1; filter: drop-shadow(0 0 5px currentColor); }
}

/* Particle trail animation for breadcrumb items */
@keyframes particle-trail {
  0%, 100% {
    opacity: 0.3;
    transform: translateY(-50%) scale(0.5);
  }
  50% {
    opacity: 1;
    transform: translateY(-50%) scale(1);
  }
}

/* ===================================
   5. PAGINATION
   =================================== */
.atomic-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 2rem 0;
}

.pagination-item {
  min-width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(26, 29, 36, 0.5);
  border: 1px solid rgba(0, 212, 255, 0.2);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.pagination-item::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: radial-gradient(circle, var(--neon-blue) 0%, transparent 70%);
  transform: translate(-50%, -50%);
  transition: all 0.3s ease;
}

.pagination-item:hover {
  border-color: var(--neon-blue);
  color: var(--neon-blue);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(0, 212, 255, 0.3);
}

.pagination-item:hover::before {
  width: 100%;
  height: 100%;
}

.pagination-item.active {
  background: var(--neon-blue);
  color: var(--quantum-black);
  border-color: var(--neon-blue);
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.5);
}

.pagination-ellipsis {
  color: rgba(255, 255, 255, 0.3);
  pointer-events: none;
}

.pagination-prev,
.pagination-next {
  font-size: 1.25rem;
  padding: 0 1rem;
}

/* ===================================
   6. TABS & PILLS
   =================================== */
.atomic-tabs {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border-bottom: 1px solid rgba(0, 212, 255, 0.2);
  margin-bottom: 2rem;
}

.tab-item {
  padding: 1rem 2rem;
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  font-weight: 600;
  position: relative;
  transition: all 0.3s ease;
  cursor: pointer;
}

.tab-item::before {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--neon-blue);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.3s ease;
}

.tab-item:hover {
  color: rgba(255, 255, 255, 0.9);
}

.tab-item.active {
  color: var(--neon-blue);
}

.tab-item.active::before {
  transform: scaleX(1);
}

/* Pills variation */
.atomic-pills {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.25rem;
  background: rgba(26, 29, 36, 0.5);
  border-radius: 50px;
  width: fit-content;
}

.pill-item {
  padding: 0.75rem 1.5rem;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-weight: 600;
  border-radius: 50px;
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
}

.pill-item:hover {
  color: var(--neon-blue);
}

.pill-item.active {
  background: var(--neon-blue);
  color: var(--quantum-black);
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.5);
}

/* ===================================
   7. STEPPER COMPONENT
   =================================== */
.atomic-stepper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 800px;
  margin: 2rem auto;
}

.stepper-item {
  flex: 1;
  display: flex;
  align-items: center;
  position: relative;
}

.stepper-item:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 24px;
  left: calc(50% + 24px);
  width: calc(100% - 48px);
  height: 2px;
  background: rgba(0, 212, 255, 0.2);
  z-index: -1;
}

.stepper-item.completed:not(:last-child)::after {
  background: var(--neon-blue);
  box-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
}

.stepper-button {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  background: none;
  border: none;
  cursor: pointer;
  width: 100%;
  text-decoration: none;
  color: inherit;
}

.stepper-circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(26, 29, 36, 0.8);
  border: 2px solid rgba(0, 212, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  transition: all 0.3s ease;
  position: relative;
}

.stepper-item.active .stepper-circle {
  border-color: var(--neon-blue);
  background: rgba(0, 212, 255, 0.1);
  color: var(--neon-blue);
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.5);
}

.stepper-item.completed .stepper-circle {
  background: var(--neon-blue);
  color: var(--quantum-black);
  border-color: var(--neon-blue);
}

.stepper-circle::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 2px solid var(--neon-blue);
  opacity: 0;
  animation: stepper-pulse 2s ease-in-out infinite;
}

.stepper-item.active .stepper-circle::after {
  opacity: 1;
}

@keyframes stepper-pulse {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  100% {
    transform: scale(1.5);
    opacity: 0;
  }
}

.stepper-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.6);
  transition: color 0.3s ease;
}

.stepper-item.active .stepper-label,
.stepper-item.completed .stepper-label {
  color: var(--neon-blue);
}

/* ===================================
   8. SIDEBAR NAVIGATION
   =================================== */
.atomic-sidebar {
  position: fixed;
  left: 0;
  top: 80px;
  width: 260px;
  height: calc(100vh - 80px);
  background: rgba(10, 10, 15, 0.95);
  border-right: 1px solid rgba(0, 212, 255, 0.2);
  padding: 2rem 0;
  overflow-y: auto;
  z-index: 100;
}

.sidebar-section {
  margin-bottom: 2rem;
}

.sidebar-title {
  padding: 0 1.5rem;
  margin-bottom: 1rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.4);
}

.sidebar-nav {
  list-style: none;
}

.sidebar-item {
  position: relative;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 1.5rem;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: all 0.2s ease;
  position: relative;
}

.sidebar-link::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 3px;
  height: 100%;
  background: var(--neon-blue);
  transform: scaleY(0);
  transition: transform 0.2s ease;
}

.sidebar-link:hover {
  color: var(--neon-blue);
  background: rgba(0, 212, 255, 0.05);
}

.sidebar-link.active {
  color: var(--neon-blue);
  background: rgba(0, 212, 255, 0.1);
}

.sidebar-link:hover::before,
.sidebar-link.active::before {
  transform: scaleY(1);
}

.sidebar-icon {
  width: 20px;
  height: 20px;
  opacity: 0.8;
}

.sidebar-badge {
  margin-left: auto;
  padding: 0.25rem 0.5rem;
  background: var(--neon-blue);
  color: var(--quantum-black);
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 12px;
}

/* ===================================
   9. MEGA MENU
   =================================== */
.mega-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  width: 90vw;
  max-width: 1200px;
  background: rgba(10, 10, 15, 0.98);
  border: 1px solid rgba(0, 212, 255, 0.2);
  border-radius: 12px;
  padding: 2rem;
  opacity: 0;
  visibility: hidden;
  transform: translateX(-50%) translateY(-10px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(20px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.nav-item:hover .mega-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(10px);
}

.mega-menu-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.mega-menu-column {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.mega-menu-title {
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--neon-blue);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.mega-menu-title::before {
  content: '';
  width: 20px;
  height: 2px;
  background: var(--neon-blue);
}

.mega-menu-list {
  list-style: none;
}

.mega-menu-item {
  margin-bottom: 0.5rem;
}

.mega-menu-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 0.875rem;
  transition: all 0.2s ease;
}

.mega-menu-link:hover {
  color: var(--neon-blue);
  padding-left: 0.5rem;
}

.mega-menu-icon {
  width: 16px;
  height: 16px;
  opacity: 0.6;
}

.mega-menu-featured {
  grid-column: span 2;
  background: rgba(0, 212, 255, 0.05);
  border: 1px solid rgba(0, 212, 255, 0.2);
  border-radius: 8px;
  padding: 1.5rem;
}

/* ===================================
   10. USER MENU & NOTIFICATIONS
   =================================== */
.user-menu {
  position: relative;
}

.user-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--neon-blue), var(--plasma-purple));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--quantum-black);
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
}

.user-avatar:hover {
  transform: scale(1.05);
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.5);
}

.user-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 240px;
  background: rgba(26, 29, 36, 0.98);
  border: 1px solid rgba(0, 212, 255, 0.2);
  border-radius: 12px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.user-menu.active .user-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.user-info {
  padding: 1.5rem;
  border-bottom: 1px solid rgba(0, 212, 255, 0.1);
}

.user-name {
  font-weight: 700;
  color: var(--neon-blue);
  margin-bottom: 0.25rem;
}

.user-email {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.6);
}

.user-menu-list {
  padding: 0.5rem 0;
}

.user-menu-item {
  display: block;
  padding: 0.75rem 1.5rem;
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: all 0.2s ease;
  position: relative;
}

.user-menu-item:hover {
  background: rgba(0, 212, 255, 0.05);
  color: var(--neon-blue);
}

/* Notifications */
.notifications-menu {
  position: relative;
}

.notifications-button {
  position: relative;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  padding: 0.5rem;
  transition: all 0.2s ease;
}

.notifications-button:hover {
  color: var(--neon-blue);
}

.notifications-badge {
  position: absolute;
  top: 0;
  right: 0;
  width: 18px;
  height: 18px;
  background: var(--fusion-orange);
  color: white;
  font-size: 0.625rem;
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: notification-pulse 2s ease-in-out infinite;
}

@keyframes notification-pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}

.notifications-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 320px;
  max-height: 400px;
  background: rgba(26, 29, 36, 0.98);
  border: 1px solid rgba(0, 212, 255, 0.2);
  border-radius: 12px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  overflow: hidden;
}

.notifications-menu.active .notifications-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.notifications-header {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid rgba(0, 212, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.notifications-title {
  font-weight: 700;
  color: var(--neon-blue);
}

.notifications-clear {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  transition: color 0.2s ease;
}

.notifications-clear:hover {
  color: var(--neon-blue);
}

.notifications-list {
  max-height: 300px;
  overflow-y: auto;
}

.notification-item {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid rgba(0, 212, 255, 0.05);
  transition: background 0.2s ease;
  position: relative;
}

.notification-item:hover {
  background: rgba(0, 212, 255, 0.05);
}

.notification-item.unread::before {
  content: '';
  position: absolute;
  left: 0.5rem;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  background: var(--neon-blue);
  border-radius: 50%;
}

.notification-content {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 0.25rem;
}

.notification-time {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.4);
}

/* ===================================
   RESPONSIVE DESIGN
   =================================== */
@media (max-width: 1024px) {
  .navbar-nav {
    display: none;
  }
  
  .mobile-menu-toggle {
    display: flex;
    flex-direction: column;
  }
  
  .atomic-sidebar {
    transform: translateX(-100%);
    transition: transform 0.3s ease;
  }
  
  .atomic-sidebar.active {
    transform: translateX(0);
  }
  
  .mega-menu-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .navbar-container {
    padding: 1rem;
  }
  
  .atomic-breadcrumbs {
    font-size: 0.75rem;
    gap: 0.5rem;
  }
  
  .atomic-pagination {
    gap: 0.25rem;
  }
  
  .pagination-item {
    min-width: 36px;
    height: 36px;
    font-size: 0.875rem;
  }
  
  .atomic-tabs {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  
  .tab-item {
    padding: 0.75rem 1rem;
    white-space: nowrap;
  }
  
  .atomic-stepper {
    flex-direction: column;
    gap: 2rem;
  }
  
  .stepper-item::after {
    display: none;
  }
  
  .mega-menu-grid {
    grid-template-columns: 1fr;
  }
  
  .notifications-dropdown {
    width: 100vw;
    right: -1rem;
    border-radius: 0;
  }
}

/* ===================================
   UTILITY CLASSES
   =================================== */
.nav-divider {
  width: 1px;
  height: 24px;
  background: rgba(255, 255, 255, 0.1);
  margin: 0 1rem;
}

.nav-search {
  position: relative;
  margin-left: auto;
  margin-right: 2rem;
}

.nav-search-input {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50px;
  padding: 0.5rem 1rem 0.5rem 2.5rem;
  color: white;
  width: 200px;
  transition: all 0.3s ease;
}

.nav-search-input:focus {
  width: 300px;
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--neon-blue);
  outline: none;
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.2);
}

.nav-search-icon {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255, 255, 255, 0.4);
  pointer-events: none;
}

/* ===================================
   11. HEADER ENHANCED STYLES
   Moved from inline styles
   =================================== */
.element-indicator {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin-right: 0.5rem;
}

.featured-elements-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 1rem;
}

.featured-element {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1rem;
  background: rgba(0, 212, 255, 0.05);
  border: 1px solid rgba(0, 212, 255, 0.2);
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.featured-element:hover {
  background: rgba(0, 212, 255, 0.1);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(0, 212, 255, 0.3);
}

.featured-element .element-symbol {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--neon-blue);
}

.featured-element .element-name {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 0.25rem;
}

.navbar-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Animation classes using shared keyframes */
.atom-orbit {
  animation: rotate 20s linear infinite;
}

.atom-electron {
  animation: pulse-glow 2s ease-in-out infinite;
}

/* ===================================
   12. FUTURISTIC SEARCH BAR
   Dark sci-fi themed search interface
   ===================================*/

/* Main search container in navigation */
.nav-search-container {
  position: relative;
  flex: 0 1 400px;
  margin: 0 2rem;
  z-index: 100;
}

/* Search form styling */
.search-bar {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  background: rgba(0, 212, 255, 0.03);
  border: 1px solid rgba(0, 212, 255, 0.15);
  border-radius: 50px;
  padding: 2px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(10px);
  box-shadow: 
    inset 0 2px 4px rgba(0, 0, 0, 0.3),
    0 0 0 0 rgba(0, 212, 255, 0);
}

/* Glowing hover state */
.search-bar:hover {
  background: rgba(0, 212, 255, 0.05);
  border-color: rgba(0, 212, 255, 0.3);
  box-shadow: 
    inset 0 2px 4px rgba(0, 0, 0, 0.3),
    0 0 20px rgba(0, 212, 255, 0.1);
}

/* Intense focus state with pulsing glow */
.search-bar:focus-within {
  background: rgba(0, 212, 255, 0.08);
  border-color: var(--color-brand-primary);
  box-shadow: 
    inset 0 2px 6px rgba(0, 0, 0, 0.4),
    0 0 30px rgba(0, 212, 255, 0.2),
    0 0 60px rgba(0, 212, 255, 0.1);
  animation: search-pulse 2s ease-in-out infinite;
}

/* Search input field */
.search-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  padding: 10px 20px;
  font-size: 14px;
  font-family: var(--font-secondary);
  color: rgba(255, 255, 255, 0.9);
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
}

/* Placeholder styling */
.search-input::placeholder {
  color: rgba(0, 212, 255, 0.4);
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-size: 12px;
  transition: all 0.3s ease;
}

/* Placeholder on focus */
.search-input:focus::placeholder {
  color: rgba(0, 212, 255, 0.2);
  letter-spacing: 2px;
}

/* Remove default search input styling */
.search-input::-webkit-search-cancel-button,
.search-input::-webkit-search-decoration {
  display: none;
}

/* Search button with electric effect */
.search-button {
  position: relative;
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.2), rgba(189, 0, 255, 0.2));
  border: 1px solid rgba(0, 212, 255, 0.3);
  border-radius: 50px;
  padding: 8px 20px;
  margin-right: 2px;
  color: var(--color-brand-primary);
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 50px;
}

/* Button hover state with plasma effect */
.search-button:hover {
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.3), rgba(189, 0, 255, 0.3));
  border-color: var(--color-brand-primary);
  color: #ffffff;
  transform: scale(1.05);
  box-shadow: 
    0 0 20px rgba(0, 212, 255, 0.4),
    inset 0 0 10px rgba(0, 212, 255, 0.2);
}

/* Electric bolt animation on button */
.search-button::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(0, 212, 255, 0.6) 0%, transparent 70%);
  transform: translate(-50%, -50%) scale(0);
  transition: transform 0.5s ease;
  pointer-events: none;
}

.search-button:active::before {
  transform: translate(-50%, -50%) scale(2);
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Lightning bolt icon animation */
.search-button i {
  transition: all 0.3s ease;
  filter: drop-shadow(0 0 3px currentColor);
}

.search-button:hover i {
  transform: rotate(-15deg) scale(1.2);
  filter: drop-shadow(0 0 8px var(--color-brand-primary));
  animation: lightning-flash 0.6s ease infinite;
}

/* Search results dropdown */
.nav-search-results {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  right: 0;
  background: rgba(10, 10, 15, 0.98);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(0, 212, 255, 0.2);
  border-radius: 16px;
  max-height: 400px;
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 
    0 10px 40px rgba(0, 0, 0, 0.5),
    0 0 60px rgba(0, 212, 255, 0.1),
    inset 0 1px 0 rgba(0, 212, 255, 0.1);
  z-index: 1000;
}

/* Show results on active state */
.nav-search-results.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Individual search result items */
.nav-search-results .search-result-item {
  display: flex;
  align-items: center;
  padding: 12px 20px;
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  border-bottom: 1px solid rgba(0, 212, 255, 0.05);
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}

/* Hover effect for results */
.nav-search-results .search-result-item:hover {
  background: rgba(0, 212, 255, 0.1);
  color: var(--color-brand-primary);
  padding-left: 30px;
}

/* Scanning line effect on hover */
.nav-search-results .search-result-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 3px;
  height: 100%;
  background: linear-gradient(180deg, transparent, var(--color-brand-primary), transparent);
  transform: translateY(-100%);
  transition: transform 0.3s ease;
}

.nav-search-results .search-result-item:hover::before {
  transform: translateY(0);
}

/* Element symbol in results */
.nav-search-results .element-symbol {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin-right: 12px;
  background: rgba(0, 212, 255, 0.1);
  border: 1px solid rgba(0, 212, 255, 0.3);
  border-radius: 8px;
  font-weight: 900;
  font-size: 16px;
  color: var(--color-brand-primary);
  transition: all 0.3s ease;
}

.nav-search-results .search-result-item:hover .element-symbol {
  background: rgba(0, 212, 255, 0.2);
  border-color: var(--color-brand-primary);
  transform: rotate(5deg) scale(1.1);
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
}

/* Element details in results */
.nav-search-results .element-details {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.nav-search-results .element-name {
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.5px;
}

.nav-search-results .element-number {
  font-size: 11px;
  color: rgba(0, 212, 255, 0.5);
  font-family: var(--font-mono);
  letter-spacing: 1px;
}

/* No results message */
.nav-search-results .no-results {
  padding: 20px;
  text-align: center;
  color: rgba(255, 255, 255, 0.4);
  font-size: 14px;
  font-style: italic;
}

/* Loading state for search */
.search-bar.loading .search-input {
  background-image: linear-gradient(
    90deg,
    transparent 0%,
    rgba(0, 212, 255, 0.1) 50%,
    transparent 100%
  );
  background-size: 200% 100%;
  animation: search-loading 1.5s linear infinite;
}

/* Custom scrollbar for results */
.nav-search-results::-webkit-scrollbar {
  width: 6px;
}

.nav-search-results::-webkit-scrollbar-track {
  background: rgba(0, 212, 255, 0.05);
  border-radius: 3px;
}

.nav-search-results::-webkit-scrollbar-thumb {
  background: rgba(0, 212, 255, 0.3);
  border-radius: 3px;
  transition: background 0.3s ease;
}

.nav-search-results::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 212, 255, 0.5);
}

/* Animations */
@keyframes search-pulse {
  0%, 100% {
    box-shadow: 
      inset 0 2px 6px rgba(0, 0, 0, 0.4),
      0 0 30px rgba(0, 212, 255, 0.2),
      0 0 60px rgba(0, 212, 255, 0.1);
  }
  50% {
    box-shadow: 
      inset 0 2px 6px rgba(0, 0, 0, 0.4),
      0 0 40px rgba(0, 212, 255, 0.3),
      0 0 80px rgba(0, 212, 255, 0.15);
  }
}

@keyframes lightning-flash {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

@keyframes search-loading {
  0% { background-position: -100% 0; }
  100% { background-position: 200% 0; }
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .nav-search-container {
    flex: 0 1 300px;
    margin: 0 1rem;
  }
}

@media (max-width: 768px) {
  .nav-search-container {
    position: fixed;
    top: 60px;
    left: 10px;
    right: 10px;
    margin: 0;
    z-index: 999;
  }
  
  .search-bar {
    background: rgba(10, 10, 15, 0.95);
  }
  
  .nav-search-results {
    position: fixed;
    top: 110px;
    left: 10px;
    right: 10px;
    max-height: calc(100vh - 120px);
  }
}

/* ===================================
   13. ANIMATION KEYFRAMES
   Consolidated animation definitions
   =================================== */

/* Continuous rotation for atomic orbits */
@keyframes rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* ===================================
   14. FUTURISTIC SEARCH BAR
   Dark Sci-Fi Theme Styling
   =================================== */

/* Search Container */
.nav-search-container {
  position: relative;
  flex: 0 1 400px;
  max-width: 400px;
  margin: 0 2rem;
  z-index: 100;
}

/* Override any conflicting styles - ENHANCED VISIBILITY */
.nav-molecular .nav-search-container .search-bar,
.nav-container .nav-search-container .search-bar,
nav .nav-search-container .search-bar {
  position: relative !important;
  display: flex !important;
  align-items: center !important;
  background: rgba(0, 50, 80, 0.5) !important;  /* Much more visible background */
  backdrop-filter: blur(10px) !important;
  border: 2px solid rgba(0, 212, 255, 0.5) !important;  /* Brighter, thicker border */
  border-radius: 50px !important;
  padding: 2px !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  box-shadow: 
    0 0 30px rgba(0, 212, 255, 0.4),  /* Strong cyan glow */
    0 2px 10px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(0, 212, 255, 0.1) !important;
}

/* Search Form - ENHANCED VISIBILITY */
.search-bar {
  position: relative !important;
  display: flex !important;
  align-items: center !important;
  background: rgba(0, 50, 80, 0.5) !important;  /* Much more visible background */
  backdrop-filter: blur(10px) !important;
  border: 2px solid rgba(0, 212, 255, 0.5) !important;  /* Brighter, thicker border */
  border-radius: 50px !important;
  padding: 2px !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  box-shadow: 
    0 0 30px rgba(0, 212, 255, 0.4),  /* Strong cyan glow */
    0 2px 10px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(0, 212, 255, 0.1) !important;
}

.search-bar:hover {
  border-color: rgba(0, 212, 255, 0.7) !important;  /* Brighter on hover */
  background: rgba(0, 60, 100, 0.6) !important;  /* Lighter on hover */
  box-shadow: 
    0 0 40px rgba(0, 212, 255, 0.5),  /* Stronger glow */
    0 4px 20px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(0, 212, 255, 0.2) !important;
}

.search-bar:focus-within {
  border-color: #00d4ff !important;
  background: rgba(0, 70, 110, 0.7) !important;  /* Much lighter when focused */
  box-shadow: 
    0 0 50px rgba(0, 212, 255, 0.6),  /* Very strong cyan glow */
    0 6px 30px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(0, 212, 255, 0.3),
    0 0 60px rgba(0, 212, 255, 0.2) !important;
  animation: search-pulse 2s ease-in-out infinite;
}

@keyframes search-pulse {
  0%, 100% {
    box-shadow: 
      0 6px 30px rgba(0, 0, 0, 0.5),
      inset 0 1px 0 rgba(0, 212, 255, 0.3),
      0 0 40px rgba(0, 212, 255, 0.15),
      0 0 60px rgba(0, 212, 255, 0.1);
  }
  50% {
    box-shadow: 
      0 8px 35px rgba(0, 0, 0, 0.6),
      inset 0 1px 0 rgba(0, 212, 255, 0.4),
      0 0 50px rgba(0, 212, 255, 0.2),
      0 0 80px rgba(0, 212, 255, 0.15);
  }
}

/* Search Input */
.search-input,
#navSearchInput,
.nav-search-container input[type="search"],
.search-bar input {
  flex: 1 !important;
  background: transparent !important;
  border: none !important;
  padding: 0.6rem 1rem 0.6rem 1.5rem !important;
  color: #ffffff !important;
  font-size: 0.9rem !important;
  font-family: 'Orbitron', 'Rajdhani', monospace !important;
  letter-spacing: 0.05em !important;
  outline: none !important;
  transition: all 0.3s ease !important;
}

.search-input::placeholder {
  color: rgba(0, 212, 255, 0.6);  /* Brighter placeholder */
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  transition: all 0.3s ease;
}

.search-input:focus::placeholder {
  color: rgba(0, 212, 255, 0.2);
  letter-spacing: 0.15em;
}

/* Search Button */
.search-button,
.nav-search-container button[type="submit"],
.search-bar button {
  position: relative !important;
  width: 42px !important;
  height: 42px !important;
  background: linear-gradient(135deg, #00d4ff, #0099cc) !important;
  border: none !important;
  border-radius: 50% !important;
  color: #ffffff !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin-right: 3px !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  overflow: hidden !important;
  box-shadow: 
    0 2px 10px rgba(0, 212, 255, 0.3),
    inset 0 -2px 4px rgba(0, 0, 0, 0.2) !important;
}

.search-button::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.8), transparent);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease;
}

.search-button:hover {
  background: linear-gradient(135deg, #00d4ff, #bd00ff);
  transform: scale(1.08);
  box-shadow: 
    0 4px 20px rgba(0, 212, 255, 0.5),
    inset 0 -2px 4px rgba(0, 0, 0, 0.3),
    0 0 30px rgba(189, 0, 255, 0.3);
}

.search-button:hover::before {
  width: 100px;
  height: 100px;
}

.search-button:hover i {
  animation: lightning-flash 0.5s ease infinite;
  transform: rotate(15deg);
}

@keyframes lightning-flash {
  0%, 100% { 
    opacity: 1; 
    filter: brightness(1) drop-shadow(0 0 5px #00d4ff);
  }
  50% { 
    opacity: 0.3; 
    filter: brightness(3) drop-shadow(0 0 15px #00d4ff);
  }
}

.search-button:active {
  transform: scale(0.95);
  background: linear-gradient(135deg, #0099cc, #00d4ff);
}

.search-button i {
  font-size: 1.1rem;
  transition: all 0.3s ease;
  z-index: 1;
  filter: drop-shadow(0 0 3px rgba(255, 255, 255, 0.5));
}
