.app-nav {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04), 0 2px 8px rgba(0, 0, 0, 0.04);
  padding: 0 1.5rem;
  position: sticky;
  top: 0;
  z-index: 100;
}

.app-nav-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 40px;
}

.app-nav-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.15rem;
  font-weight: 800;
  color: #1a1a2e;
  text-decoration: none;
  letter-spacing: -0.01em;
}

.app-nav-logo {
  height: 24px;
  width: auto;
}

.app-nav-brand:hover {
  opacity: 0.8;
}

.app-nav-badge {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #6b7280;
  background: #f3f4f6;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  padding: 0.15rem 0.4rem;
  line-height: 1;
}

.app-nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.app-nav-link {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.875rem;
  font-weight: 700;
  color: #111827;
  text-decoration: none;
  padding: 0.35rem 0.75rem;
  border-radius: 6px;
  transition: background 0.12s, color 0.12s;
}

.app-nav-link:hover {
  background: none;
  color: #374151;
}


.app-nav-right {
  position: relative;
}

.app-nav-avatar {
  -webkit-appearance: none;
  appearance: none;
  display: flex;
  align-items: center;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}

.app-nav-avatar-initials {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #1976d2;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  flex-shrink: 0;
  transition: background 0.15s, box-shadow 0.15s;
}

.app-nav-avatar:hover .app-nav-avatar-initials {
  background: #1565c0;
  box-shadow: 0 0 0 3px rgba(25, 118, 210, 0.18);
}

.app-nav-dropdown {
  position: absolute;
  top: calc(100% + 0.6rem);
  right: 0;
  width: 260px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
  overflow: hidden;
  z-index: 200;
}

.app-nav-dropdown-header {
  padding: 1rem 1.25rem 0.75rem;
  border-bottom: 1px solid #f3f4f6;
}

.app-nav-dropdown-name {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
  color: #111;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.app-nav-dropdown-email {
  display: block;
  font-size: 0.8rem;
  color: #9ca3af;
  margin-top: 0.15rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.app-nav-dropdown-section {
  padding: 0.75rem 0 0.5rem;
}

.app-nav-dropdown-section-title {
  margin: 0 0 0.25rem;
  padding: 0 1.25rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: #111;
  letter-spacing: -0.01em;
}

.app-nav-dropdown-item {
  display: block;
  padding: 0.5rem 1.25rem;
  font-size: 0.9rem;
  font-weight: 400;
  color: #374151;
  text-decoration: none;
  transition: background 0.1s;
}

.app-nav-dropdown-item:hover {
  background: #f9fafb;
  color: #111;
}

.app-nav-dropdown-divider {
  height: 1px;
  background: #f3f4f6;
  margin: 0;
}

.app-nav-dropdown-item[type="button"],
.app-nav-dropdown-item:not(a) {
  -webkit-appearance: none;
  appearance: none;
  background: none;
  border: none;
  font: inherit;
  cursor: pointer;
  width: 100%;
  text-align: left;
}

.app-nav-dropdown-logout {
  color: #dc2626;
  padding-bottom: 0.75rem;
}

.app-nav-dropdown-logout:hover {
  background: #fef2f2 !important;
  color: #dc2626 !important;
}

@media (max-width: 600px) {
  .app-nav {
    padding: 0 1rem;
  }
}
