* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  height: 100%;
  font-size: 16px;
}

body {
  font-family: "Circular Std", -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  color: #484848;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  flex-direction: column;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.command-block {
  background: #1a1a1a;
  border-radius: 12px;
  margin: 32px 0;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  animation: slideUp 0.6s ease-out;
}

.command-block__header {
  background: #2d2d2d;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.terminal-dots {
  display: flex;
  gap: 6px;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.dot--red {
  background: #ff5f56;
}

.dot--yellow {
  background: #ffbd2e;
}

.dot--green {
  background: #27ca3f;
}

.command-block__label {
  font-size: 12px;
  color: #8e8e93;
  font-weight: 500;
}

.command-block__content {
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.command__code {
  flex: 1;
  font-family: "SF Mono", Monaco, Consolas, "Liberation Mono", "Courier New",
    monospace;
  font-size: 14px;
  color: #00ff88;
  line-height: 1.4;
  white-space: pre-wrap;
  word-break: break-all;
  margin: 0;
}

.command__copy {
  background: #ff5a60;
  color: white;
  border: none;
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.command__copy:hover {
  background: #ff385c;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255, 90, 96, 0.4);
}

.command__copy:active {
  transform: translateY(0);
}

.copy-icon {
  width: 16px;
  height: 16px;
  stroke-width: 2;
}

.copy-text-container {
  display: grid;
  grid-template-areas: "stack";
}

.copied-text,
.copy-text {
  grid-area: stack;
}

.copied-text {
  visibility: hidden;
}

@media (max-width: 768px) {
  .command-block__content {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }

  .command__copy {
    display: flex;
    justify-content: center;
    width: 100%;
  }
}

@media (max-width: 480px) {
  .command__code {
    font-size: 12px;
  }
}
