/* Sized/styled to match .notification-bell it sits next to. */
.header-actions-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  background: none;
  color: var(--text-secondary);
  cursor: pointer;
}

.header-actions-btn:hover { border-color: var(--border); color: var(--text-primary); }
.header-actions-btn.active { border-color: var(--primary-color); color: var(--text-primary); }

.header-actions-spinner {
  position: absolute;
  inset: -2px;
  border: 2px solid transparent;
  border-top-color: var(--primary-color);
  border-radius: 50%;
  /* notification-spin is defined in NotificationCenter.css - keyframes are
     global and that file is in the same always-loaded chunk as this one. */
  animation: notification-spin 0.8s linear infinite;
}

/* position: fixed, anchored by usePopover's menuStyle - the header is a
   sticky, backdrop-filtered box, which would otherwise clip/stack over it. */
.header-actions-popover {
  position: fixed;
  z-index: 1100;
  min-width: 160px;
  display: flex;
  flex-direction: column;
  padding: 0.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.header-actions-item {
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 0.875rem;
  text-align: left;
  padding: 0.625rem 0.75rem;
  border-radius: 4px;
  cursor: pointer;
}

.header-actions-item:hover:not(:disabled) { background-color: var(--surface-hover); }
.header-actions-item:disabled { opacity: 0.5; cursor: default; }
