/* Spec 025: the notification bell (header) and the inbox page. Logical properties so Arabic mirrors without a second file. */

/* Bell badge on the mobile icon button (same place as the basket count) */
.notification-bell-mobile .badge {
  position: absolute;
  top: 2px;
  inset-inline-end: -4px;
  font-size: 0.65rem;
}

/* Dropdown under the desktop top-bar bell */
.notification-dropdown {
  width: 360px;
  max-width: calc(100vw - 32px);
  padding: 0;
  overflow: hidden;
}
.notification-dropdown-items {
  max-height: 60vh;
  overflow-y: auto;
}

/* One item: unread dot, text, relative time (dropdown and inbox page) */
.notification-item {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 0.75rem 1rem;
  color: var(--bs-body-color, #212529);
  text-decoration: none;
  white-space: normal;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}
.notification-item:hover,
.notification-item:focus {
  background: rgba(13, 110, 253, 0.06);
  color: inherit;
}
.notification-item.is-unread {
  background: rgba(13, 110, 253, 0.04);
}
.notification-item.is-read .notification-text {
  color: #6c757d;
}
.notification-dot {
  flex: 0 0 auto;
  width: 10px;
  height: 10px;
  margin-top: 0.4rem;
  border-radius: 50%;
  background: transparent;
}
.notification-item.is-unread .notification-dot {
  background: #dc3545;
}
.notification-icon {
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(13, 110, 253, 0.1);
  color: #0d6efd;
}
.notification-body {
  flex: 1 1 auto;
  min-width: 0;
}
.notification-text {
  display: block;
  overflow-wrap: anywhere;
  font-weight: 500;
}
.notification-item.is-unread .notification-text {
  font-weight: 600;
}
.notification-time {
  display: block;
  font-size: 0.8rem;
  color: #6c757d;
}

/* Inbox page */
.notification-list {
  border-radius: 0.75rem;
  overflow: hidden;
}
.notification-list .notification-row {
  display: flex;
  align-items: stretch;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}
.notification-list .notification-row .notification-item {
  flex: 1 1 auto;
  border-bottom: 0;
}
.notification-list .notification-mark {
  flex: 0 0 auto;
  align-self: center;
  margin-inline-end: 0.5rem;
}
.notification-filters .btn {
  border-radius: 999px;
}

/* Spec 025: the mobile header row gains the bell (lock, basket, bell, globe, menu). Below 576 px the icon buttons and
   their gaps are tightened and the logo shrinks a little, so the row stays on one line down to 360 px. */
@media (max-width: 575.98px) {
  .navbar > .container > .navbar-brand {
    margin-inline-end: 0.25rem;
  }
  .navbar > .container > .navbar-brand img {
    max-width: 104px;
    height: auto;
  }
  .navbar > .container > .account-button,
  .navbar > .container > form > .account-button,
  .navbar > .container > .dropdown > .account-button,
  .navbar > .container > .navbar-toggler {
    padding-inline: 0.55rem;
  }
  .navbar > .container > .me-2.d-md-none {
    margin-inline-end: 0.3rem !important;
  }
}
