/*
 * This is a manifest file that'll be compiled into application.css, which will include all the files
 * listed below.
 *
 * Any CSS (and SCSS, if configured) file within this directory, lib/assets/stylesheets, or any plugin's
 * vendor/assets/stylesheets directory can be referenced here using a relative path.
 *
 * You're free to add application-wide styles to this file and they'll appear at the bottom of the
 * compiled file so the styles you add here take precedence over styles defined in any other CSS
 * files in this directory. Styles in this file should be added after the last require_* statement.
 * It is generally better to create a new file per style scope.
 *


 */

/* Enhanced Markdown Typography Styles */
.prose {
  max-width: none;
}

.prose h1, .prose h2, .prose h3, .prose h4, .prose h5, .prose h6 {
  font-weight: 700;
  margin-top: 1.5rem;
  margin-bottom: 1rem;
  line-height: 1.3;
}

.prose h1 {
  font-size: 2rem;
  color: #1e293b;
  border-bottom: 2px solid #e2e8f0;
  padding-bottom: 0.5rem;
}

.prose h2 {
  font-size: 1.5rem;
  color: #1e293b;
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 0.25rem;
}

.prose h3 {
  font-size: 1.25rem;
  color: #334155;
  margin-top: 1.5rem;
}

.prose h4 {
  font-size: 1.125rem;
  color: #475569;
  margin-top: 1.25rem;
}

.prose h5, .prose h6 {
  font-size: 1rem;
  color: #64748b;
  margin-top: 1rem;
}

.prose p {
  margin-bottom: 1rem;
  line-height: 1.6;
}

.prose strong, .prose b {
  font-weight: 700;
  color: #1e293b;
}

.prose em, .prose i {
  font-style: italic;
  color: #475569;
}

.prose ul, .prose ol {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
}

.prose ul li, .prose ol li {
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

.prose ul li {
  list-style-type: disc;
}

.prose ol li {
  list-style-type: decimal;
}

.prose ul li ul li {
  list-style-type: circle;
}

.prose ul li ul li ul li {
  list-style-type: square;
}

.prose code {
  background-color: #f1f5f9;
  color: #e11d48;
  padding: 0.125rem 0.25rem;
  border-radius: 0.25rem;
  font-family: ui-monospace, SFMono-Regular, "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", monospace;
  font-size: 0.875em;
}

.prose pre {
  background-color: #1e293b;
  color: #f8fafc;
  padding: 1rem;
  border-radius: 0.5rem;
  overflow-x: auto;
  margin-bottom: 1rem;
}

.prose pre code {
  background-color: transparent;
  color: inherit;
  padding: 0;
  border-radius: 0;
}

.prose blockquote {
  border-left: 4px solid #3b82f6;
  padding-left: 1rem;
  margin: 1.5rem 0;
  background-color: #f8fafc;
  padding: 1rem;
  border-radius: 0.25rem;
  font-style: italic;
  color: #475569;
}

.prose a {
  color: #3b82f6;
  text-decoration: underline;
  font-weight: 500;
}

.prose a:hover {
  color: #1d4ed8;
  text-decoration: none;
}

.prose table {
  border-collapse: collapse;
  width: 100%;
  margin-bottom: 1rem;
}

.prose table th,
.prose table td {
  border: 1px solid #e2e8f0;
  padding: 0.5rem 0.75rem;
  text-align: left;
}

.prose table th {
  background-color: #f8fafc;
  font-weight: 600;
  color: #334155;
}

.prose table tr:nth-child(even) {
  background-color: #f8fafc;
}

.prose hr {
  border: none;
  border-top: 2px solid #e2e8f0;
  margin: 2rem 0;
}

/* JSON Editor Styles */
.json-editor {
  font-family: ui-monospace, SFMono-Regular, "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", monospace;
  line-height: 1.5;
  tab-size: 2;
  -moz-tab-size: 2;
  background-color: #f8fafc;
  border: 2px solid #e2e8f0;
  transition: border-color 0.15s ease-in-out;
}

.json-editor:focus {
  border-color: #3b82f6;
  outline: none;
}

.json-editor.valid {
  border-color: #10b981;
}

.json-editor.invalid {
  border-color: #ef4444;
}

/* Code-style pre elements in JSON display */
pre.json-display {
  background-color: #1e293b;
  color: #f8fafc;
  padding: 1rem;
  border-radius: 0.5rem;
  overflow-x: auto;
  font-size: 0.875rem;
  line-height: 1.6;
}

/* JSON syntax highlighting styles */
.json-key {
  color: #3b82f6;
  font-weight: 600;
}

.json-string {
  color: #10b981;
}

.json-number {
  color: #f59e0b;
}

.json-boolean {
  color: #8b5cf6;
  font-weight: 600;
}
