/* Member notifications page — templates/dashboard/notifications.html */

/* Settings card */
.bmr-notif-setting { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .85rem 1.25rem; }
.bmr-notif-setting + .bmr-notif-setting { border-top: 1px solid #f0f0f0; }
.bmr-notif-setting-text  { min-width: 0; }
.bmr-notif-setting-title { display: block; margin: 0; color: #1f2937; font-size: .9rem; font-weight: 700; cursor: pointer; }
.bmr-notif-setting-desc  { color: #6b7280; font-size: .8rem; line-height: 1.4; }
.bmr-notif-settings-label {
  margin: 0;
  padding: .85rem 1.25rem .15rem;
  border-top: 1px solid #f0f0f0;
  color: #9ca3af;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.bmr-notif-settings-note {
  margin: 0;
  padding: .75rem 1.25rem 1rem;
  border-top: 1px solid #f0f0f0;
  color: #9ca3af;
  font-size: .76rem;
  line-height: 1.45;
}
.bmr-notif-settings .form-switch { flex-shrink: 0; min-height: 0; margin: 0; padding-left: 0; }
.bmr-notif-settings .form-switch .form-check-input { float: none; width: 2.5em; height: 1.35em; margin: 0; cursor: pointer; }
.bmr-notif-settings .form-check-input:checked { background-color: var(--bmr-teal); border-color: var(--bmr-teal); }
.bmr-notif-settings .form-check-input:focus { border-color: var(--bmr-teal); box-shadow: 0 0 0 .2rem rgba(27, 96, 85, .2); }
.bmr-notif-settings .form-check-input:disabled { cursor: not-allowed; }

@media (min-width: 992px) {
  .bmr-notif-settings { position: sticky; top: 76px; }  /* below the sticky top bar */
}

.bmr-notif-total {
  min-width: 26px;
  height: 26px;
  padding: 0 8px;
  border-radius: 13px;
  background: var(--bmr-teal);
  color: #fff;
  font-size: .78rem;
  font-weight: 700;
  line-height: 26px;
  text-align: center;
}

.bmr-notif-row { position: relative; display: flex; gap: .9rem; padding: 1rem 1.25rem 1rem 1.6rem; }
.bmr-notif-row + .bmr-notif-row { border-top: 1px solid #f0f0f0; }
.bmr-notif-row.is-unread { background: #f6fbfa; }
.bmr-notif-row.is-unread::before {
  content: '';
  position: absolute;
  top: 1.55rem;
  left: .6rem;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--bmr-teal);
}

.bmr-notif-row-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  font-size: .95rem;
}
.bmr-notif-row-icon.tone-payment  { background: #ecfdf5; color: #047857; }
.bmr-notif-row-icon.tone-donation { background: #fef3c7; color: #92400e; }
.bmr-notif-row-icon.tone-renewal  { background: #e0f2fe; color: #0369a1; }
.bmr-notif-row-icon.tone-event    { background: #ede9fe; color: #6d28d9; }
.bmr-notif-row-icon.tone-review   { background: #f3f4f6; color: #374151; }
.bmr-notif-row-icon.tone-warning  { background: #fff7ed; color: #c2410c; }
.bmr-notif-row-icon.tone-danger   { background: #fef2f2; color: #b91c1c; }
.bmr-notif-row-icon.tone-general  { background: var(--bmr-teal-light); color: var(--bmr-teal); }

.bmr-notif-row-main  { flex: 1; min-width: 0; }
.bmr-notif-row-head  { display: flex; align-items: baseline; justify-content: space-between; gap: .75rem; }
.bmr-notif-row-title { font-size: .92rem; font-weight: 600; color: #1f2937; overflow-wrap: anywhere; }
.is-unread .bmr-notif-row-title { font-weight: 800; color: #111827; }
.bmr-notif-row-time  { flex-shrink: 0; font-size: .76rem; color: #9ca3af; white-space: nowrap; }
.bmr-notif-row-body  { margin-top: .15rem; font-size: .86rem; line-height: 1.45; color: #4b5563; overflow-wrap: anywhere; }
.bmr-notif-row-actions { display: flex; align-items: center; gap: .5rem; margin-top: .55rem; }
.bmr-notif-row-read { padding: .25rem .4rem; border: 0; background: none; color: var(--bmr-teal); font-size: .8rem; font-weight: 600; }
.bmr-notif-row-read:hover { color: var(--bmr-teal); text-decoration: underline; }

@media (max-width: 575.98px) {
  .bmr-notif-page .bmr-events-toolbar  { flex-direction: column; }
  .bmr-notif-page .bmr-events-controls { justify-content: flex-start; }
  .bmr-notif-row-head { flex-direction: column; gap: .1rem; }
}
