/* Admin shell notification bell. One of the shell stylesheets; they load in the shell's order, which keeps the cascade. */
/* IT4Y_NOTIF_BELL_V1 — Notification bell styling */
.notif-bell-wrap { position: relative; display: inline-flex; align-items: center; margin: 0 6px; }
.notif-bell {
  background: transparent; border: 1px solid var(--border, #e5e7eb); color: var(--text-dim, #4b5563);
  width: 36px; height: 36px; border-radius: 8px; cursor: pointer; padding: 0;
  display: inline-flex; align-items: center; justify-content: center; position: relative;
  transition: background .15s, transform .15s;
}

.notif-bell:hover { background: var(--panel-2, #f1f5f9); color: var(--text, #111827); }
.notif-bell-ico { font-size: 17px; line-height: 1; }
.notif-bell-badge {
  position: absolute; top: -4px; right: -4px;
  background: #ef4444; color: #fff; font-size: 10px; font-weight: 700;
  min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px;
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 0 0 2px #fff;
}
.notif-shake { animation: notif-shake .55s ease-in-out; }
@keyframes notif-shake {
  0%,100% { transform: rotate(0); }
  20%     { transform: rotate(-14deg); }
  40%     { transform: rotate(12deg); }
  60%     { transform: rotate(-8deg); }
  80%     { transform: rotate(6deg); }
}

.notif-bell-panel {
  position: absolute; top: 44px; right: 0;
  width: 380px; max-width: 92vw; max-height: 540px;
  background: var(--panel, #fff); border: 1px solid var(--border, #e5e7eb);
  border-radius: 12px; box-shadow: 0 10px 32px rgba(0,0,0,.14);
  overflow: hidden; z-index: 10000;
  display: flex; flex-direction: column;
  animation: notif-panel-in .15s ease-out;
}
/* A right-to-left chrome puts the bell near the left edge: the panel opens from it to the right. */
.app-shell[dir="rtl"] .notif-bell-panel { right: auto; left: 0; }
@keyframes notif-panel-in {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}
.notif-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 14px; border-bottom: 1px solid var(--border, #eef2f6);
  background: var(--panel-2, #f8fafc);
}
.notif-list { overflow-y: auto; flex: 1; }
.notif-empty { text-align: center; padding: 36px 16px; color: #9ca3af; }
.notif-row {
  display: grid; grid-template-columns: 38px 1fr; gap: 10px;
  padding: 10px 14px; cursor: pointer; border-bottom: 1px solid var(--border, #eef2f6);
  transition: background .12s;
}
.notif-row:hover { background: var(--panel-2, #f8fafc); }
.notif-row:last-child { border-bottom: none; }
.notif-unread { background: linear-gradient(90deg, rgba(34,160,255,.08), transparent); }
.notif-unread:hover { background: linear-gradient(90deg, rgba(34,160,255,.14), var(--panel-2,#f8fafc)); }
.notif-avatar {
  width: 36px; height: 36px; border-radius: 50%; background: #e0eaf5; color: #2563a8;
  display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 12px;
}
.notif-body { min-width: 0; }
.notif-row1 { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text, #111827); }
.notif-dot { width: 8px; height: 8px; border-radius: 50%; background: #22a0ff; display: inline-block; flex-shrink: 0; }
.notif-row1 strong { color: var(--text, #111827); }
.notif-ago { margin-left: auto; font-size: 11px; color: #9ca3af; }
.notif-subject { font-size: 13px; font-weight: 600; color: var(--text, #111827); margin-top: 2px; overflow: hidden; text-overflow: ellipsis;
  white-space: nowrap; }
.notif-preview { margin-top: 2px; line-height: 1.35; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.notif-tid { margin-top: 4px; font-size: 11px; }
.notif-tid code { background: var(--panel-2, #f1f5f9); padding: 1px 6px; border-radius: 4px; color: #6b7280; }
.notif-footer {
  display: flex; gap: 6px; align-items: center;
  padding: 10px 12px; border-top: 1px solid var(--border, #eef2f6);
  background: var(--panel-2, #f8fafc);
}
.notif-action {
  background: transparent; border: 1px solid var(--border, #d1d5db); color: var(--text-dim, #4b5563);
  padding: 5px 10px; font-size: 12px; border-radius: 6px; cursor: pointer; text-decoration: none;
  transition: all .15s;
}
.notif-action:hover { background: var(--panel, #fff); color: var(--text, #111827); border-color: #9ca3af; }
.notif-action-primary { background: #22a0ff; color: #fff !important; border-color: #22a0ff; margin-left: auto; }
.notif-action-primary:hover { background: #1d6fbd; border-color: #1d6fbd; }

/* Dark theme overrides */
/* end IT4Y_NOTIF_BELL_V1 */
