/* Admin notifications: full-height right drawer — matches admin panels / secondary controls. */

.admin-notifications-toggle {
  position: relative;
  display: inline-flex;
  height: 2.75rem; /* 44px */
  width: 2.75rem;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  overflow: visible;
  border: 0;
  border-radius: 0.5rem;
  background: transparent;
  color: #111827;
  cursor: pointer;
  transition: background-color 200ms ease;
}

.admin-notifications-toggle:hover {
  background-color: #f3f4f6; /* gray-100 */
}

.admin-notifications-toggle:focus {
  outline: none;
  box-shadow: 0 0 0 2px #fff, 0 0 0 4px #6b7280;
}

.admin-notifications-bell-icon {
  display: block;
  width: 1.5rem; /* 24px — leaves corner room for the badge */
  height: 1.5rem;
  flex-shrink: 0;
  overflow: visible;
  color: #111827;
  pointer-events: none;
}

.admin-notifications-bell-icon path {
  fill: none !important;
  stroke: #111827 !important;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Badge sits in the button's top-right padding — inside bounds so it isn't clipped */
.admin-notifications-badge {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 2;
  display: inline-flex;
  min-height: 1.25rem;
  min-width: 1.25rem;
  padding: 0 0.35rem;
  align-items: center;
  justify-content: center;
  border: 1.5px solid #fff;
  border-radius: 9999px;
  background-color: #dc2626;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  pointer-events: none;
  box-sizing: border-box;
  transform: none;
}

#admin-top-bar,
#admin-notifications {
  overflow: visible !important;
}

.admin-notifications-badge.is-empty,
.admin-notifications-badge.hidden {
  display: none !important;
}

.admin-notifications-backdrop {
  position: fixed;
  inset: 0;
  z-index: 55;
  background-color: rgb(0 0 0 / 0.4);
  opacity: 0;
  pointer-events: none;
  transition: opacity 200ms ease;
}

.admin-notifications-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

.admin-notifications-panel {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  display: flex;
  flex-direction: column;
  width: min(100vw, 24rem);
  height: 100vh;
  height: 100dvh;
  max-height: 100dvh;
  min-height: 0;
  background-color: #fff;
  border-left: 1px solid #e5e7eb;
  box-shadow: -4px 0 24px rgb(0 0 0 / 0.06);
  transform: translateX(100%);
  transition: transform 200ms ease;
  overflow: hidden;
  box-sizing: border-box;
}

.admin-notifications-panel.is-open {
  transform: translateX(0);
}

.admin-notification-item.is-unread {
  background-color: #f9fafb;
}

.admin-notification-link:hover {
  background-color: #f3f4f6;
}

body.admin-notifications-open {
  overflow: hidden;
}

.admin-notifications-panel[hidden],
.admin-notifications-backdrop[hidden] {
  display: none !important;
}

.admin-notifications-panel:not([hidden]) {
  display: flex;
}

.admin-notifications-backdrop:not([hidden]) {
  display: block;
}
