/* notify.css — styles for notify.js */

/* Header bell (next to Manage) */
.notify-bell { position: relative; }
.notify-bell-dot {
  position: absolute; top: 3px; right: 3px;
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 2px var(--surface);
  display: none;
}
.notify-bell.is-on .notify-bell-dot { display: block; }

/* Inputs + rows */
.notify-input {
  flex: 1 1 180px; min-width: 0; max-width: 100%;
  padding: 6px 9px; font: inherit; font-size: 13px;
  color: var(--text); background: var(--bg-sunken);
  border: 1px solid var(--border); border-radius: 8px;
}
.notify-input:focus { outline: none; border-color: var(--accent-line); box-shadow: 0 0 0 3px var(--accent-soft); }
.notify-row { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 4px 0 8px; }

/* Admin status line */
.notify-status { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 10px; font-size: 12px; }
.notify-pill {
  padding: 2px 8px; border-radius: 999px;
  background: var(--surface-2); border: 1px solid var(--border-soft); color: var(--text-dim);
  overflow-wrap: anywhere;
}
.notify-pill.is-on { border-color: var(--success-line); color: var(--success); background: var(--success-soft); }
.notify-pill.is-off { border-color: var(--warn-line); color: var(--warn); background: var(--warn-soft); }
.notify-last-error { flex-basis: 100%; overflow-wrap: anywhere; }

/* Outbox */
.notify-outbox-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 10px; font-size: 12.5px; }
.notify-outbox { margin-top: 6px; border: 1px solid var(--border-soft); border-radius: var(--radius-md); max-height: 300px; overflow-y: auto; }
.notify-outbox-row {
  display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px;
  padding: 6px 10px; font-size: 12px; border-bottom: 1px solid var(--border-soft);
}
.notify-outbox-row:last-child { border-bottom: 0; }
.notify-outbox-time { color: var(--text-faint); white-space: nowrap; }
.notify-outbox-event { font-family: ui-monospace, Menlo, monospace; color: var(--text); }
.notify-outbox-to { color: var(--text-dim); overflow-wrap: anywhere; }
.notify-outbox-status { margin-left: auto; font-weight: 600; }
.notify-outbox-row.status-sent .notify-outbox-status { color: var(--success); }
.notify-outbox-row.status-pending .notify-outbox-status { color: var(--warn); }
.notify-outbox-row.status-failed .notify-outbox-status { color: var(--danger); }
.notify-outbox-row.status-skipped .notify-outbox-status { color: var(--text-faint); }
.notify-outbox-error { flex-basis: 100%; color: var(--danger); overflow-wrap: anywhere; }

/* Notifications modal */
.notify-modal-body { padding: 14px 18px 6px; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; }
.notify-modal-body .notify-input { flex: none; width: 100%; box-sizing: border-box; }
.notify-group { border: 1px solid var(--border-soft); border-radius: var(--radius-md); padding: 6px 12px 8px; margin: 0; }
.notify-group legend { padding: 0 6px; font-size: 12px; color: var(--text-dim); }
.notify-group .checkbox-field { margin: 4px 0; }

/* Job settings toggle */
.notify-job-wrap { display: flex; flex-direction: column; gap: 2px; margin-top: 6px; }
.notify-job-hint { padding-left: 24px; }
