body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  line-height: 1.6;
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
  background-color: #f8f9fa;
}

main {
  background-color: white;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

h1 {
  color: #333;
  border-bottom: 2px solid #eee;
  padding-bottom: 10px;
}

#markdown-tabs {
  margin: 20px 0;
  border-bottom: 1px solid #ddd;
}

#markdown-tabs button {
  background: none;
  border: 1px solid transparent;
  border-bottom: none;
  padding: 10px 20px;
  cursor: pointer;
  margin-bottom: -1px;
  border-radius: 5px 5px 0 0;
}

#markdown-tabs button.active {
  border-color: #ddd;
  border-bottom-color: white;
  background-color: white;
  font-weight: bold;
}

#markdown-output, #markdown-source {
  margin-top: 20px;
  padding: 15px;
  border: 1px solid #ddd;
  border-radius: 0 5px 5px 5px;
  min-height: 200px;
  white-space: pre-wrap;
  font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
  background-color: #f9f9f9;
}

#markdown-output h1,
#markdown-output h2,
#markdown-output h3 {
  color: #2c3e50;
  margin-top: 24px;
  margin-bottom: 16px;
}

#markdown-output p {
  margin-bottom: 16px;
}

#markdown-output code {
  background-color: #f1f1f1;
  padding: 2px 4px;
  border-radius: 3px;
  font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
}

#markdown-output pre {
  background-color: #f6f8fa;
  padding: 16px;
  overflow: auto;
  border-radius: 6px;
}

#markdown-output pre code {
  background: none;
  padding: 0;
}

#markdown-output blockquote {
  margin: 0;
  padding: 0 1em;
  color: #6a737d;
  border-left: 0.25em solid #dfe2e5;
}

#markdown-output ul,
#markdown-output ol {
  padding-left: 2em;
}

#markdown-output li {
  margin-bottom: 0.5em;
}

#markdown-output table {
  border-collapse: collapse;
  width: 100%;
  margin-bottom: 16px;
}

#markdown-output th,
#markdown-output td {
  padding: 6px 13px;
  border: 1px solid #dfe2e5;
}

#markdown-output th {
  background-color: #f6f8fa;
  font-weight: 600;
}

@media (max-width: 768px) {
  body {
    padding: 10px;
  }
  
  main {
    padding: 15px;
  }
}