/* Top Navigation Styles */
.top-nav {
  background: white;
  border-bottom: 1px solid #d9d4cf;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.nav-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

/* Brand / Logo */
.nav-brand {
  flex-shrink: 0;
}

.brand-link {
  font-size: 1.25em;
  font-weight: 600;
  color: #1a1815;
  text-decoration: none;
  letter-spacing: -0.02em;
  transition: color 0.2s ease;
}

.brand-link:hover {
  color: #6e645a;
}

/* Global Search Trigger */
.nav-search-trigger {
  flex: 1;
  max-width: 500px;
  margin: 0 32px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: #fafaf9;
  border: 1px solid #e8e4df;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: #6e645a;
  font-size: 14px;
}

.nav-search-trigger:hover {
  background: #f5f3f0;
  border-color: #d9d4cf;
}

.nav-search-trigger svg {
  flex-shrink: 0;
  color: #6e645a;
}

.nav-search-text {
  flex: 1;
  text-align: left;
  color: #a39d94;
}

.nav-search-kbd {
  flex-shrink: 0;
  display: flex;
  gap: 2px;
}

.nav-search-kbd-key {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  background: white;
  border: 1px solid #d9d4cf;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 500;
  color: #6e645a;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: #1a1815;
  cursor: pointer;
  padding: 8px;
  transition: color 0.2s ease;
}

.mobile-menu-toggle:hover {
  color: #6e645a;
}

/* Navigation Links */
.nav-links {
  display: flex;
  gap: 8px;
  align-items: center;
  flex: 1;
  justify-content: center;
}

.nav-link {
  padding: 8px 16px;
  color: #6e645a;
  text-decoration: none;
  font-size: 0.9em;
  font-weight: 500;
  transition: all 0.2s ease;
  border-radius: 4px;
  position: relative;
}

.nav-link:hover {
  color: #1a1815;
  background: #f5f3f0;
}

.nav-link.active {
  color: #1a1815;
  background: #e8e4df;
  font-weight: 600;
}

/* Right Side Actions */
.nav-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-shrink: 0;
}

.nav-create-btn {
  background: #1a1815;
  color: white;
  border: none;
  padding: 10px 18px;
  cursor: pointer;
  font-size: 0.875em;
  font-weight: 500;
  font-family: 'Inter', sans-serif;
  transition: all 0.15s ease;
  text-decoration: none;
  display: inline-block;
  letter-spacing: -0.01em;
  border-radius: 4px;
  white-space: nowrap;
}

.nav-create-btn:hover {
  background: #2d2925;
}

/* Icon Buttons (Exports, Settings, Help) */
.nav-exports-btn,
.nav-settings-btn,
.nav-help-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #e8e4df;
  color: #1a1815;
  border: 1px solid #d4cfc7;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1em;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  font-family: 'Inter', sans-serif;
}

.nav-exports-btn:hover,
.nav-settings-btn:hover,
.nav-help-btn:hover {
  background: #d4cfc7;
  transform: scale(1.05);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.nav-exports-btn svg,
.nav-settings-btn svg {
  width: 16px;
  height: 16px;
  stroke: #1a1815;
}

/* User Profile Dropdown */
.nav-user-profile {
  position: relative;
}

.nav-user-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1a1815 0%, #6e645a 100%);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.9em;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 2px solid transparent;
}

.nav-user-avatar:hover {
  transform: scale(1.05);
  border-color: #1a1815;
  box-shadow: 0 4px 12px rgba(26, 24, 21, 0.2);
}

.nav-user-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: white;
  border: 1px solid #d9d4cf;
  border-radius: 4px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  min-width: 220px;
  display: none;
  z-index: 1001;
  animation: slideDown 0.2s ease;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.nav-user-dropdown.show {
  display: block;
}

.nav-user-dropdown-header {
  padding: 16px;
  border-bottom: 1px solid #e8e4df;
  background: #fafaf9;
  border-radius: 4px 4px 0 0;
}

.nav-user-dropdown-name {
  font-weight: 600;
  font-size: 0.9em;
  color: #1a1815;
  margin-bottom: 4px;
}

.nav-user-dropdown-email {
  font-size: 0.75em;
  color: #6e645a;
}

.nav-user-dropdown-item {
  padding: 12px 16px;
  cursor: pointer;
  font-size: 0.85em;
  font-weight: 500;
  color: #1a1815;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
  font-family: 'Inter', sans-serif;
  transition: background 0.15s ease;
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-user-dropdown-item:hover {
  background: #fafaf9;
}

.nav-user-dropdown-divider {
  height: 1px;
  background: #e8e4df;
  margin: 4px 0;
}

.nav-user-dropdown-item.logout {
  color: #c93434;
}

.nav-user-dropdown-item.logout:hover {
  background: #fee;
}

/* Mobile Styles */
@media (max-width: 768px) {
  .nav-container {
    padding: 0 16px;
  }

  /* Hide search trigger text and kbd on mobile, show icon only */
  .nav-search-trigger {
    margin: 0 12px;
    max-width: 40px;
    padding: 8px;
  }

  .nav-search-text,
  .nav-search-kbd {
    display: none;
  }

  .mobile-menu-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: white;
    border-bottom: 1px solid #d9d4cf;
    flex-direction: column;
    gap: 0;
    align-items: stretch;
    padding: 8px 0;
    display: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  }

  .nav-links.mobile-open {
    display: flex;
  }

  .nav-link {
    padding: 14px 16px;
    border-radius: 0;
    border-bottom: 1px solid #e8e4df;
  }

  .nav-link:last-child {
    border-bottom: none;
  }

  .nav-create-btn {
    padding: 8px 14px;
    font-size: 0.8em;
  }

  .brand-link {
    font-size: 1.1em;
  }
}
