/* Click-to-copy commands. Matches the .smartolt-copy-cell affordance used in
   the SmartOLT dashboard: copy cursor, rounded hover tint, no underline.
   The negative margin keeps the padding from shifting surrounding text. */
.copyable-command {
  color: #0064c8;
  cursor: copy;
  position: relative;
  display: inline;
  margin: -1px -4px;
  padding: 1px 4px;
  border-radius: 4px;
  transition: background-color 0.12s ease;
}

.copyable-command:hover,
.copyable-command:focus {
  background-color: rgba(0, 100, 200, 0.1);
  outline: none;
}

.copyable-command:focus {
  box-shadow: 0 0 0 2px rgba(0, 100, 200, 0.25);
}

/* Multi-line command blocks read as code, not as blue bold prose. The value
   spans inside them keep the accent colour, so what you must edit stands out. */
.copyable-command.command-block {
  display: inline-block;
  margin: 6px 0;
  padding: 12px 14px;
  border: 1px solid #e1e6ea;
  border-radius: 3px;
  background: #f6f8fa;
  color: #2c343b;
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", "DejaVu Sans Mono", monospace;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.65;
  padding-right: 40px;
}

.copyable-command-icon {
  position: absolute;
  top: 8px;
  right: 10px;
  color: #9aa7b1;
  font-size: 14px;
  line-height: 1;
  pointer-events: none;
}

.copyable-command.command-block:hover .copyable-command-icon,
.copyable-command.command-block:focus .copyable-command-icon {
  color: #0064c8;
}

.copyable-command.command-block:hover,
.copyable-command.command-block:focus {
  background-color: #eef4fb;
  border-color: #b9d3ee;
}

/* Inside <pre> the padding would break the column alignment of OLT output. */
pre .copyable-command {
  display: inline;
  margin: 0;
  padding: 0;
}

.copyable-command::after {
  content: "Copied";
  display: none;
  position: absolute;
  left: 0;
  bottom: 100%;
  z-index: 5;
  margin-bottom: 4px;
  padding: 2px 6px;
  border-radius: 3px;
  background: #248a3d;
  color: #fff;
  font-size: 11px;
  font-weight: 400;
  line-height: 1.4;
  white-space: nowrap;
}

.copyable-command.copied::after {
  display: inline-block;
}
