.installation {
  display: flex;
  align-items: center;
  padding: 1rem 0;
  width: 100%;
}

.codeBlock {
  background: var(--ifm-background-color);
  border: 1px solid var(--ifm-color-emphasis-300);
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  max-width: 900px;
  margin: 0 auto;
  overflow: hidden;
}

.codeHeader {
  background: var(--ifm-color-emphasis-100);
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--ifm-color-emphasis-300);
}

.codeTitle {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ifm-color-emphasis-700);
}

.codeContent {
  display: flex;
  align-items: center;
  padding: 1rem;
  background: var(--ifm-code-background);
  position: relative;
}

.codeText {
  font-family: var(--ifm-font-family-monospace);
  font-size: 1rem;
  color: var(--ifm-color-content);
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  flex: 1;
  white-space: nowrap;
  overflow-x: auto;
}

.copyButton {
  background: var(--ifm-color-emphasis-200);
  border: 1px solid var(--ifm-color-emphasis-600);
  border-radius: 4px;
  color: var(--ifm-color-emphasis-600);
  cursor: pointer;
  font-size: 0.875rem;
  margin-left: 1rem;
  padding: 0.375rem;
  transition: opacity 0.2s ease;
  opacity: 0;
}

.codeBlock:hover .copyButton {
  opacity: 1;
}

.copyButton:hover {
  background: var(--ifm-color-emphasis-300);
}

.copyButton:active {
  transform: scale(0.95);
}

/* Dark mode adjustments */
[data-theme="dark"] .codeBlock {
  border-color: var(--ifm-color-emphasis-200);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .codeHeader {
  background: var(--ifm-color-emphasis-200);
  border-bottom-color: var(--ifm-color-emphasis-200);
}

[data-theme="dark"] .codeTitle {
  color: var(--ifm-color-emphasis-600);
}
