/* demo/styles.css */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    Segoe UI,
    Roboto,
    sans-serif;
  background: #0f0f0f;
  color: #e0e0e0;
  line-height: 1.5;
}
.app {
  max-width: 960px;
  margin: 0 auto;
  padding: 24px;
}
.header {
  text-align: center;
  margin-bottom: 32px;
}
.header h1 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 8px;
  background:
    linear-gradient(
      135deg,
      #6366f1,
      #a78bfa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.header p {
  font-size: 14px;
  color: #888;
}
.controls {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
  align-items: center;
}
.controls button {
  padding: 8px 16px;
  border: 1px solid #333;
  border-radius: 6px;
  background: #1a1a1a;
  color: #e0e0e0;
  cursor: pointer;
  font-size: 13px;
  transition: background 0.15s;
}
.controls button:hover {
  background: #2a2a2a;
}
.controls button.active {
  background: #6366f1;
  border-color: #6366f1;
  color: white;
}
.stats {
  display: flex;
  gap: 24px;
  margin-bottom: 16px;
  padding: 12px 16px;
  background: #1a1a1a;
  border-radius: 8px;
  border: 1px solid #222;
  font-size: 13px;
}
.stats .stat {
  display: flex;
  gap: 6px;
}
.stats .stat-label {
  color: #888;
}
.stats .stat-value {
  color: #6366f1;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.editor-container {
  border: 1px solid #222;
  border-radius: 8px;
  background: #141414;
  overflow: hidden;
}
.editor-scroll {
  height: 70vh;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #333 transparent;
}
.block {
  padding: 4px 48px;
  border-bottom: 1px solid #1a1a1a;
  transition: background 0.1s;
}
.block:hover {
  background: #1a1a2a;
}
.block-paragraph {
  font-size: 16px;
  line-height: 1.6;
  color: #d0d0d0;
}
.block-heading-1 {
  font-size: 32px;
  font-weight: 700;
  line-height: 1.3;
  color: #fff;
  padding-top: 20px;
  padding-bottom: 8px;
}
.block-heading-2 {
  font-size: 24px;
  font-weight: 600;
  line-height: 1.3;
  color: #f0f0f0;
  padding-top: 16px;
  padding-bottom: 6px;
}
.block-heading-3 {
  font-size: 19px;
  font-weight: 600;
  line-height: 1.4;
  color: #e8e8e8;
  padding-top: 12px;
  padding-bottom: 4px;
}
.block-code {
  font-family:
    "JetBrains Mono",
    "Fira Code",
    "Cascadia Code",
    monospace;
  font-size: 14px;
  line-height: 1.6;
  background: #0a0a0a;
  border: 1px solid #222;
  border-radius: 6px;
  padding: 16px;
  margin: 8px 48px;
  color: #a0d0a0;
  white-space: pre-wrap;
  overflow-x: auto;
}
.block-image {
  margin: 8px 48px;
  border-radius: 8px;
  overflow: hidden;
  background:
    linear-gradient(
      135deg,
      #1a1a2e,
      #16213e);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #555;
  font-size: 13px;
}
.block-table {
  margin: 8px 48px;
  border-collapse: collapse;
  width: calc(100% - 96px);
  font-size: 14px;
}
.block-table td,
.block-table th {
  border: 1px solid #222;
  padding: 8px 12px;
  text-align: left;
}
.block-table th {
  background: #1a1a2a;
  font-weight: 600;
}
.block-divider {
  margin: 16px 48px;
  border: none;
  border-top: 1px solid #333;
}
.block-list {
  padding-left: 72px;
  font-size: 16px;
  line-height: 1.6;
  color: #d0d0d0;
}
.block-index {
  position: absolute;
  left: 8px;
  font-size: 11px;
  color: #444;
  font-variant-numeric: tabular-nums;
}
