/* ── Tool card (matches product ToolCard component) ───────────────── */

.tool-card {
  align-self: stretch;
  margin: 8px 0;
  animation: fadeIn 0.15s ease-out;
}

.tool-card-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s;
  position: relative;
  overflow: hidden;
}

.tool-card-header:hover {
  background: #f9fafb;
}

.tool-card-header .tool-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: #7a7afe;
}

.tool-card-header .tool-name {
  font-size: 14px;
  font-weight: 500;
  color: #030712;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tool-card-header .tool-expand {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: #9ca3af;
  transition: transform 0.3s ease;
}

.tool-card-header .tool-expand.expanded {
  transform: rotate(180deg);
}

.tool-card-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  width: 100%;
  background: #f3f4f6;
  overflow: hidden;
}

.tool-card-progress::after {
  content: "";
  position: absolute;
  top: 0;
  left: -40%;
  height: 100%;
  width: 40%;
  background: linear-gradient(90deg, #7a7afe, #a78bfa, #7a7afe);
  animation: tool-progress 1.5s ease-in-out infinite;
}

@keyframes tool-progress {
  0% { left: -40%; }
  100% { left: 100%; }
}

.tool-card-content {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.3s ease-in-out, opacity 0.2s ease-in-out;
}

.tool-card-content.expanded {
  max-height: 400px;
  opacity: 1;
  overflow-y: auto;
}

.tool-card-body {
  padding: 12px 16px;
  border: 1px solid #e5e7eb;
  border-top: none;
  border-radius: 0 0 8px 8px;
  font-size: 12px;
  line-height: 1.5;
  color: #374151;
  font-family: "Consolas", "Menlo", monospace;
  white-space: pre-wrap;
  word-break: break-all;
  background: #f9fafb;
}
