/* topbar.css: Consistent top bar styling for all pages */
.appbar {
  background: #fff;
  color: var(--text, #18181a);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
  height: 60px;
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.03);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transform: translateY(0);
  transition: transform 0.35s cubic-bezier(.4,0,.2,1), box-shadow 0.2s cubic-bezier(.4,0,.2,1), background 0.2s cubic-bezier(.4,0,.2,1);
}
.appbar-spacer {
  height: 60px;
  width: 100%;
}
.appbar-title a {
  color: var(--primary, #0071e3);
  text-decoration: none;
  font-weight: 800;
  font-size: 2.1rem;
  letter-spacing: 0.1px;
  transition: color 0.18s;
}
.appbar-title a:hover {
  color: var(--primary-hover, #005bb5);
}
.appbar-nav {
  display: flex;
  gap: 36px;
}
.appbar-link {
  color: var(--primary, #0071e3);
  text-decoration: none;
  font-size: 1.08rem;
  font-weight: 600;
  border-radius: 0;
  padding: 7px 18px;
  transition: color 0.18s, border-bottom 0.18s;
  position: relative;
  overflow: visible;
  border-bottom: 1.5px solid transparent;
}
.appbar-link:hover {
  background: none;
  color: var(--primary-hover, #005bb5);
  text-decoration: none;
  border-bottom: 1.5px solid var(--primary-hover, #005bb5);
  box-shadow: none;
}
@media (max-width: 700px) {
  .appbar {
    padding: 0 10px;
  }
  .appbar-title a {
    font-size: 1.3rem;
  }
  .appbar-link {
    font-size: 1rem;
    padding: 7px 10px;
  }
}
body.scrolled .appbar {
  box-shadow: 0 2px 16px rgba(0,0,0,0.08);
  background: #fff;
  transform: translateY(-18px);
}
:root.dark .appbar {
  background: #18181a;
  color: #f7f8fa;
  border-bottom: 1px solid #33343a;
}
:root.dark .appbar-link {
  color: #7ab8ff;
  border-bottom: 1.5px solid transparent;
}
:root.dark .appbar-link:hover {
  color: #4a90e2;
  background: none;
  text-decoration: none;
  border-bottom: 1.5px solid #4a90e2;
}
:root.dark .appbar-title a {
  color: #7ab8ff;
}
:root.dark .appbar-title a:hover {
  color: #4a90e2;
}
