/* Persistent top nav bar — logo + admin account menu.
   Used on every admin page AND the auth pages (login/register), so it's kept
   in its own file rather than adminDashboard.css to avoid clashing with each
   page's own body/h1 rules. Depends on adminUI.css for .admin-dropdown-*. */
.admin-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  flex-shrink: 0; /* never let the flex column (body) squish the nav to make room for .container */
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  height: 60px;
  background: #1e293b;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
}

.admin-nav-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: #fff;
  font-weight: 700;
  font-size: 1.05rem;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
}

.admin-nav-divider {
  color: rgba(255, 255, 255, 0.3);
  font-weight: 400;
}

.admin-nav-tag {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: #4338ca;
  color: #fff;
  padding: 3px 9px;
  border-radius: 999px;
}

/* Override the base kebab-button sizing from adminUI.css for this specific trigger */
.admin-nav .admin-dropdown-trigger.admin-user-trigger {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  width: auto;
  height: auto;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 24px;
  padding: 0.3rem 0.9rem 0.3rem 0.35rem;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 500;
}

.admin-nav .admin-dropdown-trigger.admin-user-trigger:hover,
.admin-nav .admin-dropdown-trigger.admin-user-trigger.is-active {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}

.admin-user-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #4338ca;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 700;
  flex-shrink: 0;
}

.admin-user-email {
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-user-chevron {
  font-size: 0.7rem;
  opacity: 0.8;
}

@media (max-width: 480px) {
  .admin-nav {
    padding: 0 0.75rem;
  }

  .admin-nav-logo {
    font-size: 0.85rem;
    gap: 0.4rem;
  }

  .admin-nav-tag,
  .admin-nav-divider {
    display: none; /* saves space — the dark bar + logo are enough context at this width */
  }

  .admin-nav .admin-dropdown-trigger.admin-user-trigger {
    padding: 0.25rem 0.6rem 0.25rem 0.3rem;
    gap: 0.4rem;
  }

  .admin-user-email {
    max-width: 90px;
  }
}
