/*
 * 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.
 */

/* Markdown content styling for LLM responses (dark theme) */

.markdown-content h1 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-top: 1.25rem;
  margin-bottom: 0.5rem;
  color: #e5e7eb; /* gray-200 */
}

.markdown-content h2 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-top: 1rem;
  margin-bottom: 0.5rem;
  color: #e5e7eb;
}

.markdown-content h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-top: 0.75rem;
  margin-bottom: 0.25rem;
  color: #e5e7eb;
}

.markdown-content h4,
.markdown-content h5,
.markdown-content h6 {
  font-size: 1rem;
  font-weight: 600;
  margin-top: 0.75rem;
  margin-bottom: 0.25rem;
  color: #d1d5db; /* gray-300 */
}

.markdown-content p {
  margin-bottom: 0.5rem;
}

.markdown-content ul {
  list-style-type: disc;
  padding-left: 1.5rem;
  margin-bottom: 0.5rem;
}

.markdown-content ol {
  list-style-type: decimal;
  padding-left: 1.5rem;
  margin-bottom: 0.5rem;
}

.markdown-content li {
  margin-bottom: 0.25rem;
}

.markdown-content a {
  color: #818cf8; /* indigo-400 */
  text-decoration: underline;
}

.markdown-content a:hover {
  color: #a5b4fc; /* indigo-300 */
}

.markdown-content code {
  background-color: #1f2937; /* gray-800 */
  color: #f9a8d4; /* pink-300 */
  padding: 0.125rem 0.375rem;
  border-radius: 0.25rem;
  font-size: 0.875rem;
}

.markdown-content pre {
  background-color: #111827; /* gray-900 */
  border: 1px solid #374151; /* gray-700 */
  border-radius: 0.375rem;
  padding: 0.75rem 1rem;
  overflow-x: auto;
  margin-bottom: 0.75rem;
}

.markdown-content pre code {
  background-color: transparent;
  color: #d1d5db; /* gray-300 */
  padding: 0;
  font-size: 0.875rem;
}

.markdown-content blockquote {
  border-left: 3px solid #4b5563; /* gray-600 */
  padding-left: 1rem;
  color: #9ca3af; /* gray-400 */
  margin-bottom: 0.5rem;
}

.markdown-content table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 0.75rem;
}

.markdown-content th {
  background-color: #1f2937; /* gray-800 */
  color: #e5e7eb;
  font-weight: 600;
  text-align: left;
  padding: 0.5rem 0.75rem;
  border: 1px solid #374151; /* gray-700 */
}

.markdown-content td {
  padding: 0.5rem 0.75rem;
  border: 1px solid #374151;
}

.markdown-content hr {
  border: none;
  border-top: 1px solid #374151;
  margin: 1rem 0;
}

.markdown-content strong {
  font-weight: 700;
  color: #f3f4f6; /* gray-100 */
}

.markdown-content em {
  font-style: italic;
}

.markdown-content del {
  text-decoration: line-through;
  color: #9ca3af; /* gray-400 */
}

/* Remove top margin on first child and bottom margin on last child */
.markdown-content > *:first-child {
  margin-top: 0;
}

.markdown-content > *:last-child {
  margin-bottom: 0;
}
