/* Code block copy button: brand button with a "Copy" label on every code block */
.dai-code-copy {
  background: transparent;
  box-shadow: none;
  padding: 0;
  margin: 10px 18px 10px 10px;
}
.dai-code-copy button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: auto;
  height: auto;
  min-height: 0;
  padding: 7px 14px;
  border-radius: 8px;
  color: #fff;
  background: #FD6A35;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.01em;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08), 0 2px 6px rgba(253, 106, 53, 0.25);
  transition: background 0.15s, transform 0.15s;
}
.dai-code-copy button:hover {
  color: #fff;
  background: #E85A28;
  transform: translateY(-1px);
}
.dai-code-copy button svg {
  width: 14px;
  height: 14px;
  color: #fff;
  stroke: #fff;
}
.dai-code-copy button::after {
  content: "Copy";
}

/* Prompt boxes: same button, labelled "Copy Prompt" */
.prompt-copy .dai-code-copy button::after {
  content: "Copy Prompt";
}

/* Smooth icon swap: check icon pops in after copying, copy icon fades back in */
@keyframes uc-icon-pop {
  0% { opacity: 0; transform: scale(0.3) rotate(-45deg); }
  60% { opacity: 1; transform: scale(1.2) rotate(8deg); }
  100% { opacity: 1; transform: scale(1) rotate(0); }
}
@keyframes uc-icon-in {
  0% { opacity: 0; transform: scale(0.6); }
  100% { opacity: 1; transform: scale(1); }
}
.dai-code-copy button svg {
  animation: uc-icon-in 0.5s ease-out;
}
.dai-code-copy button svg.lucide-check {
  animation: uc-icon-pop 0.7s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@media (prefers-reduced-motion: reduce) {
  .dai-code-copy button svg,
  .dai-code-copy button svg.lucide-check {
    animation: none;
  }
}
