/* Header notification bell, inbox dropdown and toast — templates/partials/notification_bell.html */
[x-cloak] { display: none !important; }

.bmr-notif { position: relative; }
.bmr-notif-toggle { position: relative; display: inline-flex; align-items: center; }
.bmr-notif-toggle .fa-bell { font-size: 18px; line-height: 1; color: var(--body-font-color); transition: color .3s; }
.bmr-notif-toggle:hover .fa-bell { color: var(--theme-default); }

.bmr-notif-badge {
  position: absolute;
  top: -7px;
  right: -9px;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  border-radius: 9px;
  background: #dc3545;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  line-height: 17px;
  text-align: center;
}

.bmr-notif-menu {
  position: absolute;
  top: calc(100% + 14px);
  right: 0;
  z-index: 1050;
  width: 360px;
  max-width: calc(100vw - 32px);
  overflow: hidden;
  border-radius: 10px;
  background: var(--white);
  box-shadow: 0 10px 40px rgba(0, 0, 0, .15);
  text-align: left;
}

.bmr-notif-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(128, 128, 128, .15);
}
.bmr-notif-head strong { font-size: 15px; color: var(--body-font-color); }
.bmr-notif-link {
  padding: 0;
  border: 0;
  background: none;
  color: var(--theme-default);
  font-size: 12px;
  font-weight: 600;
}

.bmr-notif-push {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: color-mix(in srgb, var(--theme-default) 10%, transparent);
  color: var(--body-font-color);
  font-size: 13px;
  line-height: 1.4;
}
.bmr-notif-push .btn { flex-shrink: 0; }

.bmr-notif-note { margin: 0; padding: 10px 16px; font-size: 12px; line-height: 1.4; }

.bmr-notif-list { max-height: 360px; margin: 0; padding: 0; overflow-y: auto; list-style: none; }
.bmr-notif-list li + li { border-top: 1px solid rgba(128, 128, 128, .12); }
.bmr-notif-list button {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 2px;
  width: 100%;
  padding: 12px 16px 12px 30px;
  border: 0;
  background: none;
  text-align: left;
}
.bmr-notif-list button:hover { background: rgba(128, 128, 128, .08); }
.bmr-notif-list .is-unread button::before {
  content: '';
  position: absolute;
  top: 18px;
  left: 13px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--theme-default);
}
.bmr-notif-title { color: var(--body-font-color); font-size: 13px; font-weight: 600; }
.is-unread .bmr-notif-title { font-weight: 800; }
.bmr-notif-body { color: var(--body-font-color); opacity: .75; font-size: 12.5px; line-height: 1.4; white-space: normal; }
.bmr-notif-time { color: var(--body-font-color); opacity: .55; font-size: 11px; }

.bmr-notif-empty { margin: 0; padding: 24px 16px; color: var(--body-font-color); opacity: .6; font-size: 13px; text-align: center; }

.bmr-notif-footer {
  display: block;
  padding: 11px 16px;
  border-top: 1px solid rgba(128, 128, 128, .15);
  color: var(--bmr-teal, var(--theme-default));
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
}
.bmr-notif-footer:hover { background: rgba(128, 128, 128, .08); color: var(--bmr-teal, var(--theme-default)); }

/* Unread count on the member dashboard sidebar link */
.bmr-sidebar-count {
  float: right;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 10px;
  background: #dc3545;
  color: #fff;
  font-size: .7rem;
  font-weight: 700;
  line-height: 20px;
  text-align: center;
}

.bmr-notif-toast {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 2px;
  width: 320px;
  max-width: calc(100vw - 32px);
  padding: 14px 16px;
  border-left: 4px solid var(--theme-default);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 8px 30px rgba(0, 0, 0, .18);
  color: var(--body-font-color);
  font-size: 13px;
  cursor: pointer;
}
.bmr-notif-toast strong { font-size: 14px; }

/* Public layout top bar (teal background, templates/public/base.html) */
.bmr-notif--topnav .bmr-notif-toggle { padding: 6px; }
.bmr-notif--topnav .bmr-notif-toggle .fa-bell,
.bmr-notif--topnav .bmr-notif-toggle:hover .fa-bell { color: #fff; }
.bmr-notif--topnav .bmr-notif-badge { top: -1px; right: -3px; box-shadow: 0 0 0 2px var(--bmr-teal, #1b6055); }
.bmr-notif--topnav .bmr-notif-menu { top: calc(100% + 10px); }

@media (max-width: 575.98px) {
  /* Anchor the menu to the header instead of the bell so it fits the screen width. */
  .bmr-notif { position: static; }
  .bmr-notif-menu { top: 100%; right: 16px; left: 16px; width: auto; max-width: none; }
}
