/* ======================================================
   Unified Hamburger Menu Styles
   Use this CSS file across all pages for consistency
   ====================================================== */

/* Hamburger Button */
.hamburger {
  font-size: 26px;
  padding: 12px;
  cursor: pointer;
  position: fixed;
  top: 8px;
  right: 12px;
  z-index: 9999;
  background: #333;
  color: white;
  border-radius: 6px;
  border: none;
  transition: background 0.2s ease;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  min-width: 44px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: auto !important;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  /* Ensure button is always clickable/touchable */
  -webkit-touch-callout: none;
  -webkit-user-drag: none;
}

.hamburger:hover {
  background: #444;
}

.hamburger:active {
  background: #555;
}

/* Menu Panel */
.menu-panel {
  position: fixed;
  top: 0;
  right: 0;
  width: 230px;
  height: 100%;
  background: #222;
  color: white;
  padding: 20px;
  margin: 0;
  box-shadow: -2px 0 10px rgba(0, 0, 0, 0.4);
  transform: translateX(100%);
  transition: transform 0.3s ease;
  z-index: 9998;
  overflow-y: auto;
  box-sizing: border-box;
}

/* Ensure consistent spacing for all direct children */
.menu-panel > * {
  margin: 0;
}

.menu-panel.show {
  transform: translateX(0);
}

/* Menu Links */
.menu-panel a {
  display: block;
  color: white;
  padding: 10px 0;
  margin: 0;
  text-decoration: none;
  font-size: 16px;
  line-height: 1.4;
  transition: color 0.2s ease;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  box-sizing: border-box;
}

.menu-panel a:last-of-type {
  border-bottom: none;
}

/* Remove border from logout button since email confirmation pill comes after */
.menu-panel #logoutBtn {
  border-bottom: none;
}

/* Ensure consistent spacing for admin links container */
.menu-panel #adminLinks {
  margin: 0;
  padding: 0;
}

.menu-panel #adminLinks a {
  display: block;
  color: white;
  padding: 10px 0;
  margin: 0;
  text-decoration: none;
  font-size: 16px;
  line-height: 1.4;
  transition: color 0.2s ease;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.menu-panel a:hover {
  color: #4dd2ff;
}

/* Logout Button */
.menu-panel #logoutBtn {
  margin-top: 20px;
  padding: 12px;
  background: #d32f2f;
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  width: 100%;
  transition: background 0.2s ease;
}

.menu-panel #logoutBtn:hover {
  background: #b71c1c;
}

/* Admin Links Separator */
.menu-panel hr {
  margin: 15px 0;
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

/* Admin Section Title (optional) */
.menu-panel .admin-section-title {
  margin-top: 15px;
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  color: #9fb3c8;
  letter-spacing: 0.5px;
}

/* Email Confirmation Pill */
.menu-panel #emailConfirmationPill {
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.menu-panel .email-confirmation-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  width: 100%;
  box-sizing: border-box;
}

.menu-panel .email-confirmation-pill.email-confirmed {
  background: rgba(25, 195, 125, 0.15);
  border: 1px solid rgba(25, 195, 125, 0.3);
  color: #19c37d;
}

.menu-panel .email-confirmation-pill.email-unconfirmed {
  background: rgba(20, 120, 100, 0.2);
  border: 1px solid rgba(20, 120, 100, 0.4);
  color: #e8f0ff;
}

.menu-panel .email-confirmation-pill .pill-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 14px;
  height: 14px;
  min-width: 14px;
  min-height: 14px;
  vertical-align: middle;
}

.menu-panel .email-confirmation-pill .pill-icon svg {
  width: 14px;
  height: 14px;
  min-width: 14px;
  min-height: 14px;
  display: block;
  flex-shrink: 0;
}

.menu-panel .email-confirmation-pill .pill-text {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Mobile adjustments */
@media (max-width: 640px) {
  .hamburger {
    top: 6px;
    right: 8px;
    font-size: 24px;
    padding: 12px;
    min-width: 48px;
    min-height: 48px;
  }

  .menu-panel {
    width: 200px;
    padding: 16px;
    margin: 0;
  }

  /* Ensure menu panel is touch-friendly with consistent spacing */
  .menu-panel a {
    min-height: 44px;
    display: flex;
    align-items: center;
    padding: 10px 0;
    margin: 0;
  }

  .menu-panel #adminLinks a {
    min-height: 44px;
    display: flex;
    align-items: center;
    padding: 10px 0;
    margin: 0;
  }

  .menu-panel #logoutBtn {
    min-height: 44px;
    display: flex;
    align-items: center;
    margin-top: 20px;
  }

  .menu-panel .email-confirmation-pill {
    min-height: 44px;
    padding: 10px 12px;
  }

  .menu-panel .email-confirmation-pill .pill-icon {
    font-size: 16px;
  }
}


