/* ==========================================================================
   FinBillx Website Header & Navigation Bar (Exact App Theme & Logo)
   ========================================================================== */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: var(--fb-bg-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--fb-border);
  z-index: 1000;
  transition: all var(--fb-transition-normal);
}

.navbar.scrolled {
  box-shadow: var(--fb-shadow-card);
}

.navbar-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

/* Exact FinBillx App Logo */
.app-logo {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  text-decoration: none;
  flex-shrink: 0;
}

.app-logo:hover {
  text-decoration: none;
}

.app-logo__badge {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--fb-logo-badge-bg);
  color: #ffffff;
  font-size: 18px;
  font-weight: var(--fb-font-weight-bold);
  letter-spacing: -0.03em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  user-select: none;
}

.app-logo__wordmark {
  display: inline-flex;
  align-items: baseline;
}

.app-logo__text {
  font-size: 20px;
  font-weight: var(--fb-font-weight-bold);
  color: var(--fb-text-primary);
  letter-spacing: -0.04em;
  white-space: nowrap;
  line-height: 1;
  text-transform: lowercase;
}

.app-logo__dot {
  font-size: 25px;
  font-weight: var(--fb-font-weight-bold);
  color: var(--fb-logo-dot);
  line-height: 1;
  margin-left: -1px;
}

[data-theme='dark'] .app-logo__badge {
  background: linear-gradient(135deg, #3b82f6 0%, #6366f1 100%);
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.35);
  color: #ffffff;
}

[data-theme='dark'] .app-logo__text {
  color: #ffffff;
}

[data-theme='dark'] .app-logo__dot {
  color: #60a5fa;
}

/* Nav Links */
.nav-links {
  display: flex;
  align-items: center;
  gap: var(--fb-space-6);
  list-style: none;
}

.nav-link {
  font-size: var(--fb-font-size-base);
  font-weight: var(--fb-font-weight-medium);
  color: var(--fb-text-secondary);
  text-decoration: none;
  padding: 4px 0;
  transition: color var(--fb-transition-fast);
}

.nav-link:hover,
.nav-link.active {
  color: var(--fb-text-primary);
}

/* Nav Actions */
.nav-actions {
  display: flex;
  align-items: center;
  gap: var(--fb-space-3);
}

/* Light / Dark Mode Toggle Button */
.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: var(--fb-radius-md);
  border: 1px solid var(--fb-border);
  background: var(--fb-bg-card);
  color: var(--fb-text-secondary);
  cursor: pointer;
  transition: all var(--fb-transition-fast);
}

.icon-btn:hover {
  background: var(--fb-bg-hover);
  color: var(--fb-text-primary);
  border-color: var(--fb-border-strong);
}

/* Mobile Toggle */
.mobile-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
  width: 34px;
  height: 34px;
  border-radius: var(--fb-radius-md);
  border: 1px solid var(--fb-border);
  background: var(--fb-bg-card);
  cursor: pointer;
}

.mobile-toggle span {
  display: block;
  width: 16px;
  height: 2px;
  background: var(--fb-text-primary);
}

/* Mobile Drawer */
.mobile-drawer {
  display: none;
  position: fixed;
  top: 60px;
  left: 0;
  right: 0;
  background: var(--fb-bg-card);
  border-bottom: 1px solid var(--fb-border);
  padding: var(--fb-space-4);
  box-shadow: var(--fb-shadow-modal);
  z-index: 999;
  flex-direction: column;
  gap: var(--fb-space-2);
}

.mobile-drawer.open {
  display: flex;
}

.mobile-drawer .nav-links {
  flex-direction: column;
  align-items: flex-start;
  gap: var(--fb-space-1);
  width: 100%;
}

.mobile-drawer .nav-link {
  width: 100%;
  padding: 8px 0;
  border-bottom: 1px solid var(--fb-border-light);
}

.nav-menu {
  display: flex;
  align-items: center;
}

@media (max-width: 900px) {
  .nav-menu,
  .navbar .nav-links {
    display: none;
  }
  .mobile-toggle {
    display: flex;
  }
  .nav-actions .fb-btn-ghost {
    display: none;
  }
}
