/**
 * Admin page header: menu (icon + dropdown) left, Dawn logo right.
 * Use with includes/admin_header.php on manage_participants.php and upload_pdf.php.
 */

.admin-page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  margin-bottom: 0.5rem;
  padding-bottom: 0rem;
  margin-top: -1.5rem;
}

.admin-page-header-left {
  display: flex;
  align-items: center;
  gap: 0%;
  width: 50%;
}

.admin-page-logo img {
  height: 4.7rem !important;
  width: auto !important;
  display: block;
  /* margin-right: 1rem; */
}

/* Logged-in user: label + status dot + name (role) */
.admin-header-user {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'freight-display-pro', sans-serif;
  font-size: 1.15rem;
  color: #4c46a0;
  letter-spacing: 0.02rem;
}

.admin-header-user-label {
  color: #75779a !important;
  font-weight: 400;
  letter-spacing: 0.02rem;
  width: auto;
  white-space: nowrap;
}

.admin-header-user-name {
  font-weight: 500;
  width: auto;
  white-space: nowrap;
  font-size: 1.1rem;
  color: #75779a !important;
}

.admin-header-user-name .admin-header-user-link,
.admin-header-user-name .admin-header-user-link:visited,
.admin-header-user-name .admin-header-user-link:hover,
.admin-header-user-name .admin-header-user-link:focus,
.admin-header-user-name .admin-header-user-link:active {
  color: #75779a !important;
  text-decoration: none;
  font-weight: 500;
}

.admin-header-user-name .admin-header-user-link:hover,
.admin-header-user-name .admin-header-user-link:focus {
  text-decoration: underline;
}

/* Menu: icon + dropdown */
.admin-page-menu {
  position: relative;
  display: flex;
  align-items: center;
}

.admin-menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.1rem;
  height: 2.1rem;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  font-family: inherit;
  filter: sepia(1) saturate(1212%) hue-rotate(195deg) brightness(0.4);
  opacity: 0.6;
  margin-right: 0.3rem;
  margin-left: 0;
}



.admin-menu-icon {
  cursor: pointer;
  width: 3rem;
  height: 3rem;
  background: url(../get_media.php?path=icons/menu_icon.png);
  background-size: 75%;
  background-repeat: no-repeat;
  background-position: left center;
  text-indent: -9000px;
}

.admin-menu-icon span {
  display: block;
  height: 100%;
  width: 100%;
}

.admin-menu-dropdown {
  position: absolute;
  top: 100%;
  left: 0px;
  margin-top: 0.5rem;
  min-width: 15rem;
  padding: 0.5rem 0;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 0.5rem;
  box-shadow: 1px 12px 17px 7px rgba(0, 0, 0, 0.1);
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  visibility: hidden;
  opacity: 0;
  transition: visibility 0.2s, opacity 0.2s;
}

.admin-menu-dropdown[aria-hidden="false"] {
  visibility: visible;
  opacity: 1;
}

/* Link color consistency for admin menu (same on all pages that include it) */
.admin-menu-dropdown a,
.admin-menu-dropdown a:visited,
.admin-menu-dropdown button {
  display: block;
  width: 100%;
  padding: 0.5rem 1rem;
  text-align: left;
  text-decoration: none;
  color: #75779a;
  font-family: 'freight-display-pro', sans-serif;
  font-weight: 400;
  font-size: 1.2rem;
  letter-spacing: 0.05rem;
  background: none;
  border: none;
  cursor: pointer;
  margin: 0;
  border-radius: 0;
  min-width: 16rem;
}

.admin-menu-dropdown a:hover,
.admin-menu-dropdown a:focus,
.admin-menu-dropdown button:not(:disabled):hover,
.admin-menu-dropdown button:not(:disabled):focus {
  color: #75779a;
  background: #f5f4f8;
}

.admin-menu-dropdown button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}