/* ═══════════════════════════════════════════════════════════════
   HIGH 5 CONNECT CRM — V2 Notifications Styles
   Bell badge, dropdown panel, notification items
   ═══════════════════════════════════════════════════════════════ */

/* ─── Badge ──────────────────────────────────────────────────── */
.notif-badge-wrap {
  position: relative;
  display: inline-flex;
}

.notif-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  background: var(--red);
  color: var(--text-inverse);
  border-radius: var(--r-full);
  font-size: 10px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  border: 2px solid var(--navy-darkest);
  line-height: 1;
}

/* Desktop bell (in desktop-topbar) */
@media (min-width: 1025px) {
  .notif-badge {
    border-color: var(--bg-card);
  }
}

/* ─── Panel ──────────────────────────────────────────────────── */
.notif-panel {
  position: fixed;
  top: var(--topbar-height);
  right: var(--s4);
  width: 340px;
  max-height: 420px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-xl);
  z-index: var(--z-dropdown);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: dropdown-in var(--t-fast) forwards;
}

/* Mobile: full-width */
@media (max-width: 640px) {
  .notif-panel {
    left: var(--s3);
    right: var(--s3);
    width: auto;
    max-height: 70dvh;
  }
}

/* Desktop: position under topbar area */
@media (min-width: 1025px) {
  .notif-panel {
    top: var(--s4);
    right: calc(var(--sidebar-width) + var(--s4));
  }

  .app-sidebar.collapsed ~ .app-main .notif-panel {
    right: calc(var(--sidebar-collapsed) + var(--s4));
  }
}

/* ─── Panel Header ───────────────────────────────────────────── */
.notif-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--s3) var(--s4);
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.notif-panel-title {
  font-size: var(--text-md);
  font-weight: 600;
}

/* ─── Panel List ─────────────────────────────────────────────── */
.notif-panel-list {
  flex: 1;
  overflow-y: auto;
}

/* ─── Notification Item ──────────────────────────────────────── */
.notif-item {
  display: flex;
  align-items: flex-start;
  gap: var(--s3);
  padding: var(--s3) var(--s4);
  width: 100%;
  text-align: left;
  border: none;
  background: none;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: background var(--t-fast);
}

.notif-item:hover {
  background: var(--bg-hover);
}

.notif-item:last-child {
  border-bottom: none;
}

.notif-read {
  opacity: 0.6;
}

.notif-item-icon {
  font-size: var(--text-lg);
  flex-shrink: 0;
  width: 24px;
  text-align: center;
  margin-top: 2px;
}

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

.notif-item-title {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.notif-item-body {
  font-size: var(--text-xs);
  color: var(--text-secondary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ─── Empty State ────────────────────────────────────────────── */
.notif-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--s2);
  padding: var(--s8) var(--s4);
  color: var(--text-label);
  font-size: var(--text-sm);
}

.notif-empty-icon {
  font-size: 2rem;
  opacity: 0.6;
}
