/* ===== AI Helper – sidebar card ===== */

/* ── Sidebar card (fixed at bottom of toc-sidebar, outside toc-container) ── */
.ai-helper-card {
  flex-shrink: 0;
  margin-top: 16px;
  padding: 6px 0;
  border-top: 1px solid #e8ecf1;
}

/* ── Card row (each action) ── */
.ai-helper-card-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 8px;
  font-size: 13px;
  font-weight: 400;
  color: #4b5563;
  text-decoration: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.12s ease, color 0.12s ease;
  line-height: 1.4;
}

.ai-helper-card-row:hover {
  background: #f5f7fa;
  color: #111;
}

.ai-helper-card-row:active {
  background: #eef1f6;
}

/* ── Card icon ── */
.ai-helper-card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.ai-helper-card-icon svg {
  display: block;
}

/* ── Separator ── */
.ai-helper-card-sep {
  height: 1px;
  background: #e8ecf1;
  margin: 4px 8px;
}

/* ── Toast notification ── */
.ai-helper-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  padding: 10px 20px;
  background: rgba(0, 0, 0, 0.85);
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  border-radius: 8px;
  z-index: 99999;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.ai-helper-toast-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ── Responsive: hide sidebar card on small screens ── */
@media only screen and (max-width: 1024px) {
  .ai-helper-card {
    display: none;
  }
}
