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

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: #f4f6f8;
  color: #333;
  line-height: 1.6;
  padding: 2rem;
  transition: background 0.3s, color 0.3s;
}

.container {
  max-width: 800px;
  margin: auto;
  background: #fff;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

h1 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  color: #222;
}

.subtitle {
  font-size: 1.1rem;
  color: #666;
  margin-bottom: 1.5rem;
}

.step {
  display: flex;
  background: #f9fafc;
  border-left: 4px solid #007acc;
  padding: 1rem 1.25rem;
  margin-bottom: 1.25rem;
  border-radius: 8px;
  transition: background 0.3s ease;
}

.step:hover {
  background: #eef6fb;
}

.step-number {
  font-size: 1.5rem;
  font-weight: bold;
  color: #007acc;
  margin-right: 1rem;
  width: 2rem;
  text-align: center;
}

.step-content h2 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  color: #005a9e;
}

.step-content p {
  font-size: 1rem;
}

a {
  color: #007acc;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

code {
  background: #eef;
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
  font-family: monospace;
}

.theme-toggle {
  text-align: right;
  margin-bottom: 1rem;
}

.code-block {
  position: relative;
  margin-top: 1rem;
  background: #f0f0f0;
  border-radius: 6px;
  overflow: auto;
}

.code-block pre {
  margin: 0;
  padding: 1rem;
  font-size: 0.95rem;
  background: inherit;
}

.copy-btn {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  background: #007acc;
  color: white;
  border: none;
  padding: 0.4rem 0.8rem;
  font-size: 0.8rem;
  border-radius: 4px;
  cursor: pointer;
}

.copy-btn:hover {
  background: #005fa3;
}

.dark-mode {
  background: #121212;
  color: #e0e0e0;
}

.dark-mode .container {
  background: #1e1e1e;
  box-shadow: none;
}

.dark-mode .step {
  background: #2a2a2a;
  border-left-color: #90caf9;
}

.dark-mode .step:hover {
  background: #333;
}

.dark-mode h1,
.dark-mode .step-content h2 {
  color: #90caf9;
}

.dark-mode a {
  color: #82b1ff;
}

.dark-mode code,
.dark-mode .code-block {
  background: #2e3b4e;
}

.dark-mode .copy-btn {
  background: #90caf9;
  color: #000;
}

.step {
  flex-wrap: wrap;
  overflow: hidden;
}

.step-content {
  flex: 1;
  min-width: 0;
  overflow-wrap: break-word;
  word-wrap: break-word;
  word-break: break-word;
}

.step-content a,
.step-content code {
  overflow-wrap: anywhere;
}

