body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  max-width: 960px;
  margin: 0 auto;
  padding: 2rem;
  line-height: 1.6;
  color: #24323f;
  background: #f7f9fc;
}

h1 {
  color: #1f2d3d;
  border-bottom: 2px solid #d9e2ec;
  padding-bottom: 0.5rem;
  margin-bottom: 1rem;
}

h2,
h3 {
  color: #1f2d3d;
}

p {
  margin-top: 0.5rem;
}

.example,
.category,
.links,
.note,
.demo-section {
  background: #fff;
  border-radius: 10px;
  padding: 1.5rem;
  margin: 1.5rem 0;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.example {
  border-left: 4px solid #3b82f6;
}

.category {
  border-left: 4px solid #2563eb;
}

.links {
  border-left: 4px solid #0f766e;
}

.note {
  border-left: 4px solid #f59e0b;
  background: #fff8e6;
}

.demo-section {
  border-left: 4px solid #8b5cf6;
}

.input-group {
  margin: 1rem 0;
}

label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

input,
select,
textarea,
button {
  font: inherit;
}

input,
select,
textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 0.75rem;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  background: #fff;
}

textarea {
  min-height: 120px;
  resize: vertical;
}

button {
  display: inline-block;
  border: none;
  border-radius: 6px;
  padding: 0.75rem 1rem;
  background: #2563eb;
  color: #fff;
  cursor: pointer;
  margin-top: 0.5rem;
  margin-right: 0.5rem;
}

button:hover {
  background: #1d4ed8;
}

.status {
  margin-top: 1rem;
  padding: 0.75rem;
  border-radius: 6px;
  background: #e2e8f0;
}

.status.info {
  background: #e0f2fe;
  border-left: 4px solid #0284c7;
}

.status.success {
  background: #dcfce7;
  border-left: 4px solid #16a34a;
}

.status.error {
  background: #fee2e2;
  border-left: 4px solid #dc2626;
}

.code-block,
pre {
  background: #0f172a;
  color: #e2e8f0;
  padding: 1rem;
  border-radius: 8px;
  overflow-x: auto;
  font-family: 'Monaco', 'Consolas', monospace;
  font-size: 0.9rem;
  white-space: pre-wrap;
}

.example-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
}

.example-card {
  background: #fff;
  border: 1px solid #dbe4ee;
  border-radius: 8px;
  padding: 1.25rem;
}

.example-card a,
.links a {
  color: #0369a1;
  text-decoration: none;
}

.example-card a:hover,
.links a:hover {
  text-decoration: underline;
}

.demo-grid {
  display: grid;
  gap: 1rem;
}

.log {
  background: #0f172a;
  color: #dbeafe;
  padding: 1rem;
  border-radius: 8px;
  min-height: 140px;
  font-family: 'Monaco', 'Consolas', monospace;
  font-size: 0.9rem;
  overflow: auto;
}

.footer {
  margin-top: 2rem;
  color: #64748b;
  text-align: center;
}
