/* ── Notification Drawer ── */
.notif-drawer {
  position: fixed;
  top: 56px; /* below toolbar */
  left: -340px;
  width: 340px;
  height: calc(100vh - 56px);
  background: var(--bg-primary);
  border-right: 1px solid var(--border-default);
  z-index: 200;
  display: flex;
  flex-direction: column;
  transition: left 0.25s ease;
  box-shadow: var(--shadow-xl);
}
.notif-drawer.open {
  left: 0;
}

/* Backdrop for closing */
.notif-drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.15);
  z-index: 199;
  display: none;
}
.notif-drawer-backdrop.open {
  display: block;
}

/* Header */
.notif-drawer .drawer-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-default);
  background: var(--bg-secondary);
  flex-shrink: 0;
}
.notif-drawer .drawer-header-icon {
  width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.notif-drawer .drawer-header-icon .material-icons-outlined {
  font-size: 20px; color: var(--text-primary);
}
.notif-drawer .drawer-title {
  font-size: 14px; font-weight: 700; color: var(--text-primary); flex: 1;
}
.notif-drawer .drawer-count {
  font-family: var(--font-mono);
  font-size: 11px; font-weight: 600;
  padding: 2px 8px;
  background: var(--red);
  color: #fff;
  border-radius: 10px;
  min-width: 22px;
  text-align: center;
}
.notif-drawer .drawer-count.empty {
  background: var(--bg-tertiary);
  color: var(--text-muted);
}
.notif-drawer .drawer-close {
  width: 28px; height: 28px;
  border: none; background: none;
  color: var(--text-muted); cursor: pointer;
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.15s;
}
.notif-drawer .drawer-close:hover {
  background: var(--bg-tertiary); color: var(--text-primary);
}

/* Filter tabs */
.drawer-filters {
  display: flex;
  gap: 2px;
  padding: 8px 16px;
  border-bottom: 1px solid var(--border-subtle);
  background: var(--bg-secondary);
  flex-shrink: 0;
}
.drawer-filter {
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 500;
  color: var(--text-muted);
  background: transparent;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.15s;
}
.drawer-filter:hover { color: var(--text-secondary); background: var(--bg-tertiary); }
.drawer-filter.active {
  color: var(--text-primary); background: var(--bg-tertiary); font-weight: 600;
}

/* Notification list */
.drawer-list {
  flex: 1;
  overflow-y: auto;
  padding: 4px 0;
}

/* Individual notification item */
.notif-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-subtle);
  cursor: pointer;
  transition: background 0.1s;
}
.notif-item:hover { background: var(--bg-tertiary); }
.notif-item:last-child { border-bottom: none; }
.notif-item.unread { background: var(--bg-secondary); }

/* Left icon */
.notif-icon {
  width: 30px; height: 30px;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}
.notif-icon .material-icons-outlined { font-size: 16px; }
.notif-icon.attention {
  background: rgba(220,38,38,0.06);
  color: var(--red);
}
.notif-icon.neutral {
  background: var(--bg-tertiary);
  color: var(--text-muted);
}

/* Content */
.notif-body { flex: 1; min-width: 0; }
.notif-row-1 {
  display: flex; align-items: center; gap: 6px; margin-bottom: 2px;
}
.notif-slot {
  font-family: var(--font-mono);
  font-size: 10px; font-weight: 600;
  color: var(--text-secondary);
  background: var(--bg-tertiary);
  padding: 1px 6px;
  border-radius: 3px;
  flex-shrink: 0;
}
.notif-title {
  font-size: 12px; font-weight: 600; color: var(--text-primary);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  flex: 1;
}
.notif-time {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-muted);
  flex-shrink: 0;
}
.notif-desc {
  font-size: 11px;
  color: var(--text-secondary);
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Unread dot before title */
.notif-item.unread .notif-title::before {
  content: '';
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  margin-right: 6px;
  vertical-align: middle;
  flex-shrink: 0;
}

/* Drawer footer */
.drawer-footer {
  padding: 10px 16px;
  border-top: 1px solid var(--border-default);
  background: var(--bg-secondary);
  flex-shrink: 0;
  text-align: center;
}
.drawer-footer-link {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  cursor: pointer;
  transition: color 0.15s;
  background: none;
  border: none;
}
.drawer-footer-link:hover { color: var(--text-primary); }

/* Empty state */
.drawer-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
  padding: 40px 20px;
}
.drawer-empty .material-icons-outlined {
  font-size: 40px; color: var(--border-default); margin-bottom: 12px;
}
.drawer-empty-title {
  font-size: 13px; font-weight: 500; color: var(--text-muted); margin-bottom: 4px;
}
.drawer-empty-desc {
  font-size: 11px; color: var(--text-muted);
}
