/* =========================================================
   NexaAI — Headers (marketing navbar + dashboard topbar)
   ========================================================= */

/* Marketing site navbar */
.site-navbar {
  position: sticky;
  top: 0;
  z-index: 1040;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.site-navbar .nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.site-navbar .brand { display: flex; align-items: center; gap: 10px; }
.site-navbar .brand .brand-name { font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; color: var(--text); }
.site-navbar .nav-links { display: flex; align-items: center; gap: 28px; }
.site-navbar .nav-links a {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
}
.site-navbar .nav-links a:hover { color: var(--text); text-decoration: none; }
.site-navbar .nav-cta { display: flex; align-items: center; gap: 10px; }
.mobile-nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface);
}
@media (max-width: 992px) {
  .site-navbar .nav-links { display: none; }
  .mobile-nav-toggle { display: flex; }
}

/* Dashboard topbar */
.nexa-topbar {
  height: var(--header-height);
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  position: sticky;
  top: 0;
  z-index: 1010;
  gap: 16px;
}

.topbar-search {
  position: relative;
  flex: 1;
  max-width: 420px;
}
.topbar-search input {
  width: 100%;
  padding: 9px 14px 9px 38px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface-2);
  font-size: 0.86rem;
  color: var(--text);
}
.topbar-search input:focus {
  outline: none;
  border-color: var(--primary);
  background: var(--surface);
}
.topbar-search i { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--text-faint); }
.topbar-search kbd {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1px 6px;
  font-size: 0.7rem;
  color: var(--text-faint);
}

.topbar-actions { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }

.icon-btn {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  border: 1px solid transparent;
  background: none;
  position: relative;
  cursor: pointer;
}
.icon-btn:hover { background: var(--surface-2); color: var(--text); }
.icon-btn .dot {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--danger);
  border: 2px solid var(--surface);
}

.dropdown-nexa {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 260px;
  background: var(--surface-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 8px;
  display: none;
  z-index: 1050;
}
.dropdown-nexa.show { display: block; }
.dropdown-nexa .dropdown-item-nexa {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 0.86rem;
}
.dropdown-nexa .dropdown-item-nexa:hover { background: var(--surface-2); text-decoration: none; }
.dropdown-nexa .dropdown-header-nexa {
  padding: 8px 10px 4px;
  font-size: 0.72rem;
  text-transform: uppercase;
  color: var(--text-faint);
  font-weight: 600;
}
.dropdown-nexa hr { margin: 6px 0; border-color: var(--border); }

.breadcrumb-nexa {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  color: var(--text-faint);
  margin-bottom: 4px;
}
.breadcrumb-nexa a { color: var(--text-faint); }
.breadcrumb-nexa .current { color: var(--text); font-weight: 500; }

.page-header-nexa {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 24px;
}

[dir="rtl"] .topbar-search i { left: auto; right: 12px; }
[dir="rtl"] .topbar-search input { padding: 9px 38px 9px 14px; }
[dir="rtl"] .topbar-search kbd { right: auto; left: 10px; }
[dir="rtl"] .dropdown-nexa { right: auto; left: 0; }
[dir="rtl"] .icon-btn .dot { right: auto; left: 6px; }
