/* Custom Shadcn-like styling & Tailwind utility complements */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

body {
  font-family: var(--font-sans);
  background-color: #ffffff;
  color: #0f172a;
}

code, pre, .font-mono {
  font-family: var(--font-mono);
}

/* Subtle dot background */
.bg-grid-pattern {
  background-size: 32px 32px;
  background-image: 
    linear-gradient(to right, rgba(0, 0, 0, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0, 0, 0, 0.04) 1px, transparent 1px);
}

/* Custom scrollbars */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 9999px;
}

::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Markdown preview prose styling */
.markdown-preview h1 {
  font-size: 1.85rem;
  font-weight: 800;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  color: #0f172a;
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 0.5rem;
}

.markdown-preview h2 {
  font-size: 1.45rem;
  font-weight: 700;
  margin-top: 1.25rem;
  margin-bottom: 0.5rem;
  color: #1e293b;
  border-bottom: 1px solid #f1f5f9;
  padding-bottom: 0.25rem;
}

.markdown-preview h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-top: 1rem;
  margin-bottom: 0.5rem;
  color: #334155;
}

.markdown-preview p {
  margin-top: 0.5rem;
  margin-bottom: 0.75rem;
  line-height: 1.65;
  color: #334155;
}

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

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

.markdown-preview li {
  margin-bottom: 0.25rem;
  color: #334155;
}

.markdown-preview blockquote {
  border-left: 4px solid #10b981;
  padding-left: 1rem;
  font-style: italic;
  color: #64748b;
  margin: 1rem 0;
  background-color: #f8fafc;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  border-radius: 0 0.5rem 0.5rem 0;
}

.markdown-preview table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.25rem 0;
  font-size: 0.875rem;
}

.markdown-preview th,
.markdown-preview td {
  border: 1px solid #e2e8f0;
  padding: 0.6rem 0.85rem;
  text-align: left;
}

.markdown-preview th {
  background-color: #f8fafc;
  font-weight: 600;
  color: #1e293b;
}

.markdown-preview tr:nth-child(even) {
  background-color: #fbfcfe;
}

.markdown-preview pre {
  background-color: #0f172a;
  color: #f8fafc;
  padding: 1rem;
  border-radius: 0.75rem;
  overflow-x: auto;
  margin: 1rem 0;
  font-size: 0.875rem;
}

.markdown-preview code:not(pre code) {
  background-color: #f1f5f9;
  color: #0284c7;
  padding: 0.15rem 0.35rem;
  border-radius: 0.35rem;
  font-size: 0.875em;
}

.markdown-preview a {
  color: #2563eb;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.markdown-preview hr {
  margin: 1.5rem 0;
  border: 0;
  border-top: 1px solid #e2e8f0;
}
