/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

.turbo-progress-bar {
  background: #000;
}

.dark .turbo-progress-bar {
  background: #fff;
}

/* Markdown content styling */
.markdown {
  overflow-x: auto;
}
.markdown h1 {
  font-size: 2em;
  margin-bottom: 0.5em;
}
.markdown h2 {
  font-size: 1.5em;
  margin-bottom: 0.5em;
}
.markdown h3 {
  font-size: 1.25em;
  margin-bottom: 0.5em;
}
.markdown h4 {
  font-size: 1em;
  margin-bottom: 0.5em;
}
.markdown h5 {
  font-size: 0.875em;
  margin-bottom: 0.5em;
}
.markdown h6 {
  font-size: 0.75em;
  margin-bottom: 0.5em;
}
.markdown p {
  margin-bottom: 1em;
}
.markdown ul {
  list-style-type: disc;
  padding-left: 1.5em;
  margin-bottom: 1em;
}
.markdown ol {
  list-style-type: decimal;
  padding-left: 1.5em;
  margin-bottom: 1em;
}
.markdown a {
  text-decoration: underline;
}
.markdown pre {
  padding: 1em;
  overflow-x: auto;
  margin-bottom: 1em;
  border-left: 4px solid #ddd;
  font-family: monospace;
}

.markdown blockquote {
  border-left: 4px solid #ddd;
  padding-left: 1em;
  margin-bottom: 1em;
}
.markdown table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1em;
}
.markdown table th,
.markdown table td {
  border: 1px solid #ddd;
  color: inherit;
  padding: 0.5em;
}
.markdown table th {
  background-color: transparent;
  color: inherit;
}
.markdown hr {
  margin: 1em 0;
}

/* KaTeX formula styling */
.markdown .katex-display {
  overflow-x: auto;
  overflow-y: hidden;
  margin: 1em 0;
}
.dark .katex .katex-html {
  color: inherit;
}

/* Code editor textarea styling */
.code-editor {
  tab-size: 4;
  -moz-tab-size: 4;
  line-height: 1.5;
  width: 100%;
  font-family: monospace;
  font-size: 0.875rem;
  padding: 1em;
  outline: none;
}