/* Navbar search suggestions dropdown */
.nav-search-wrapper {
  position: relative;
  width: 100%;
}

#nav-search-suggestions {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  display: none;
  z-index: 1050;
  max-height: 360px;
  overflow-y: auto;
  background: #ffffff;
  border: 1px solid rgba(0,0,0,0.15);
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

#nav-search-suggestions.show {
  display: block;
}

.nav-search-list {
  list-style: none;
  margin: 0;
  padding: 6px 0;
}

.nav-search-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  cursor: pointer;
  text-decoration: none;
  color: #111827;
}

.nav-search-item:hover,
.nav-search-item.active {
  background: #f3f4f6;
}

.nav-search-item .avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  background: #e5e7eb;
  flex-shrink: 0;
}

.nav-search-item .logo {
  width: 22px;
  height: 22px;
  border-radius: 4px;
  object-fit: cover;
  background: #e5e7eb;
  flex-shrink: 0;
}

.nav-search-texts {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.nav-search-name {
  font-size: 14px;
  line-height: 1.2;
  font-weight: 600;
  color: #111827;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav-search-sub {
  font-size: 12px;
  color: #6b7280;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav-search-empty {
  padding: 10px 12px;
  color: #6b7280;
  font-size: 14px;
}

/* Skeleton loading states */
.nav-search-skeleton {
  padding: 6px 0;
}

.nav-search-skeleton-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  cursor: default;
}

.nav-search-skeleton-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

.nav-search-skeleton-texts {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.nav-search-skeleton-name {
  height: 14px;
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  border-radius: 3px;
  animation: shimmer 1.5s infinite;
  width: 70%;
}

.nav-search-skeleton-sub {
  height: 12px;
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  border-radius: 3px;
  animation: shimmer 1.5s infinite;
  width: 50%;
}

@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

/* Ensure dropdown stays above offcanvas, etc. */
.offcanvas,
.modal {
  z-index: 20000 !important;
}
