/* Spec 025: the notification bell (header) and the inbox page. Logical properties so Arabic mirrors without a second file. */

/* The bell and basket counts on the header icons are styled in header.css (.header-count) */

/* 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;
}

/* The phone header row (bell, basket, account picture, menu) is laid out in header.css */
