.command-builder-card {
  border-radius: var(--ifm-global-radius);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  background-color: var(--ifm-card-background-color);
}

.command-builder-header {
  padding: 1.5rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.command-builder-header h3 {
  margin-bottom: 0;
  font-weight: var(--ifm-font-weight-bold);
  font-size: 1.25rem;
}

.command-builder-body {
  padding: 1.5rem;
}

.command-builder-row {
  display: flex;
  margin-bottom: 1rem;
  gap: 1rem;
}

.command-builder-column {
  flex: 1;
}

.command-builder-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--ifm-color-emphasis-700);
}

.command-builder-hint {
  font-size: 0.8rem;
  color: var(--ifm-color-emphasis-600);
  margin-top: 0.25rem;
}

.command-builder-input,
.command-builder-select {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--ifm-color-emphasis-300);
  border-radius: var(--ifm-global-radius);
  background-color: var(--ifm-background-color);
  color: var(--ifm-font-color-base);
  transition: border-color 0.2s;
}

.command-builder-input:focus,
.command-builder-select:focus {
  border-color: var(--ifm-color-primary);
  outline: none;
}

.command-builder-env-row {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  align-items: center;
}

.command-builder-button {
  padding: 0.5rem 1rem;
  border: none;
  border-radius: var(--ifm-global-radius);
  background-color: var(--ifm-color-primary);
  color: white;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s;
}

.command-builder-button:hover {
  background-color: var(--ifm-color-primary-dark);
}

.command-builder-button-danger {
  background-color: var(--ifm-color-danger);
}

.command-builder-button-danger:hover {
  background-color: var(--ifm-color-danger-dark);
}

.command-builder-button-sm {
  padding: 0.25rem 0.5rem;
  font-size: 0.875rem;
}

.command-builder-code-container {
  position: relative;
}

.command-builder-copy-button {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background-color: rgba(0, 0, 0, 0.1);
  color: var(--ifm-color-emphasis-700);
  border: none;
  border-radius: var(--ifm-global-radius);
  padding: 0.5rem;
  display: flex;
  align-items: center;
  cursor: pointer;
  transition: background-color 0.2s;
}

.command-builder-copy-button:hover {
  background-color: rgba(0, 0, 0, 0.2);
}

.command-builder-copy-button.copied {
  background-color: var(--ifm-color-success);
  color: white;
}

/* Dark mode adjustments */
[data-theme="dark"] .command-builder-header {
  border-bottom-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .command-builder-copy-button {
  background-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .command-builder-copy-button:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .command-builder-row {
    flex-direction: column;
    gap: 1rem;
  }
}
