/* ─── Notification badge on bell ──────────────────────── */
.navbar__notif-wrap {
  position: relative;
  padding: 0;
  height: auto;
}

.notif-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  background: var(--red);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  pointer-events: none;
  z-index: 2;
}

/* ─── Notification dropdown ──────────────────────────── */
.notif-dropdown {
  right: 0;
  left: auto;
  min-width: 360px;
  max-width: 400px;
  padding: 0 !important;
  overflow: hidden;
}

.notif-dropdown__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
}

.notif-dropdown__mark-all {
  background: none;
  border: none;
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
  transition: background 0.15s;
}
.notif-dropdown__mark-all:hover {
  background: rgba(240,185,11,0.1);
}

.notif-dropdown__list {
  max-height: 420px;
  overflow-y: auto;
}

.notif-dropdown__empty {
  padding: 32px 16px;
  text-align: center;
  color: var(--text-third);
  font-size: 14px;
}

.notif-dropdown__item {
  display: flex;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  transition: background 0.15s;
  text-decoration: none;
}
.notif-dropdown__item:hover {
  background: var(--bg-input);
}

.notif-dropdown__item--unread {
  background: rgba(240,185,11,0.04);
}
.notif-dropdown__item--unread .notif-dropdown__title {
  color: var(--text-primary);
}

.notif-dropdown__icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-input);
  display: flex;
  align-items: center;
  justify-content: center;
}
.notif-dropdown__icon svg {
  width: 18px;
  height: 18px;
}

.notif-dropdown__content {
  flex: 1;
  min-width: 0;
}

.notif-dropdown__title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.notif-dropdown__msg {
  font-size: 12px;
  color: var(--text-third);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.notif-dropdown__time {
  font-size: 11px;
  color: var(--text-third);
  margin-top: 4px;
}

.notif-dropdown__footer {
  display: block;
  text-align: center;
  padding: 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  border-top: 1px solid var(--border);
  transition: background 0.15s;
}
.notif-dropdown__footer:hover {
  background: rgba(240,185,11,0.06);
}

/* ─── Toast notifications ────────────────────────────── */
.notif-toasts {
  position: fixed;
  top: calc(var(--navbar-h) + 12px);
  right: 16px;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 380px;
  pointer-events: none;
}

.notif-toast {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
  pointer-events: auto;
  transform: translateX(120%);
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.notif-toast--show {
  transform: translateX(0);
  opacity: 1;
}

.notif-toast--exit {
  transform: translateX(120%);
  opacity: 0;
}

.notif-toast__icon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg-input);
  display: flex;
  align-items: center;
  justify-content: center;
}
.notif-toast__icon svg {
  width: 16px;
  height: 16px;
}

.notif-toast__body {
  flex: 1;
  min-width: 0;
}

.notif-toast__title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.notif-toast__msg {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.4;
}

.notif-toast__close {
  background: none;
  border: none;
  color: var(--text-third);
  font-size: 18px;
  cursor: pointer;
  padding: 0 2px;
  line-height: 1;
  flex-shrink: 0;
}
.notif-toast__close:hover {
  color: var(--text-primary);
}

/* ─── Notifications page ─────────────────────────────── */
.notif-page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.notif-page-header .btn-mark-all {
  background: none;
  border: 1px solid var(--border);
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s;
}
.notif-page-header .btn-mark-all:hover {
  background: rgba(240,185,11,0.08);
  border-color: var(--accent);
}

.notif-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.notif-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 20px;
  background: var(--bg-tertiary);
  border-radius: 10px;
  border: 1px solid var(--border);
  transition: background 0.15s;
  cursor: default;
}
.notif-card:hover {
  background: var(--bg-input);
}

.notif-card--unread {
  border-left: 3px solid var(--accent);
  background: rgba(240,185,11,0.03);
}

.notif-card__icon {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--bg-input);
  display: flex;
  align-items: center;
  justify-content: center;
}
.notif-card__icon svg {
  width: 20px;
  height: 20px;
}

.notif-card__body {
  flex: 1;
  min-width: 0;
}

.notif-card__title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.notif-card__msg {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 6px;
}

.notif-card__meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: var(--text-third);
}

.notif-card__tag {
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
}
.notif-card__tag--pending { background: rgba(240,185,11,0.15); color: var(--accent); }
.notif-card__tag--confirmed { background: var(--green-bg); color: var(--green); }
.notif-card__tag--rejected { background: var(--red-bg); color: var(--red); }

.notif-card__actions {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.notif-card__read-btn {
  background: none;
  border: none;
  color: var(--text-third);
  font-size: 12px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
  transition: all 0.15s;
}
.notif-card__read-btn:hover {
  background: var(--bg-input);
  color: var(--accent);
}

.notif-empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-third);
}
.notif-empty svg {
  opacity: 0.3;
  margin-bottom: 12px;
}
.notif-empty p {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 4px;
}
.notif-empty span {
  font-size: 13px;
}

.notif-load-more {
  display: block;
  width: 100%;
  padding: 14px;
  margin-top: 12px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--accent);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  transition: all 0.15s;
}
.notif-load-more:hover {
  background: rgba(240,185,11,0.08);
  border-color: var(--accent);
}

/* ─── Responsive ─────────────────────────────────────── */
@media (max-width: 768px) {
  .notif-dropdown { min-width: 0; width: calc(100vw - 16px); right: -8px; max-width: 360px; font-size: 13px; }
  .notif-dropdown__header { padding: 10px 14px; font-size: 13px; }
  .notif-dropdown__item { padding: 8px 12px; }
  .notif-dropdown__title { font-size: 12px; }
  .notif-dropdown__msg { font-size: 11px; }
  .notif-dropdown__footer { padding: 8px; font-size: 12px; }
  .notif-toasts { right: 8px; left: 8px; max-width: none; }
  .notif-card { padding: 12px 14px; gap: 10px; }
  .notif-card__icon { width: 36px; height: 36px; }
  .notif-card__icon svg { width: 18px; height: 18px; }
}
