/*
 * 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 */
.markdown-content {
  color: #334155;
  line-height: 1.625;
}

.markdown-content h1 {
  font-size: 1.875rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #e2e8f0;
}

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

.markdown-content h3 {
  font-size: 1.125rem;
  font-weight: 500;
  color: #1e293b;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

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

.markdown-content ul {
  list-style-type: disc;
  list-style-position: inside;
  margin-bottom: 1rem;
}

.markdown-content ol {
  list-style-type: decimal;
  list-style-position: inside;
  margin-bottom: 1rem;
}

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

.markdown-content strong {
  font-weight: 600;
  color: #1e293b;
}

.markdown-content a {
  color: #4f46e5;
  text-decoration: underline;
}

.markdown-content a:hover {
  color: #3730a3;
}

/* History search highlight */
.history-visit-highlight {
  background-color: #dbeafe !important;
  margin-left: -1rem !important;
  margin-right: -1rem !important;
  padding: 0.5rem 1rem !important;
  border-radius: 0.5rem !important;
  border-left: 4px solid #3b82f6 !important;
}

.history-visit-highlight .btn-ghost {
  opacity: 1 !important;
}

.history-visit-highlight a {
  color: #1d4ed8 !important;
  font-weight: 500 !important;
}
