/* style.css */

/* Custom Scrollbar */
.custom-scrollbar::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

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

.custom-scrollbar::-webkit-scrollbar-thumb {
    background: #4b5563;
    /* border */
    border-radius: 4px;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: #3b82f6;
    /* primary */
}

/* Typography styles for the preview window. 
   Using a lightweight custom prose styling since we aren't pulling in the full @tailwindcss/typography plugin to keep it simple and CDN-based.
*/
.prose {
    color: #e5e7eb;
    line-height: 1.75;
}

.prose h1 {
    margin-top: 0;
    margin-bottom: 0.8em;
    font-size: 2.25em;
    font-weight: 700;
    color: #f9fafb;
    border-bottom: 1px solid #374151;
    padding-bottom: 0.3em;
}

.prose h2 {
    margin-top: 2em;
    margin-bottom: 0.8em;
    font-size: 1.5em;
    font-weight: 600;
    color: #f9fafb;
    border-bottom: 1px solid #374151;
    padding-bottom: 0.3em;
}

.prose h3 {
    margin-top: 1.6em;
    margin-bottom: 0.6em;
    font-size: 1.25em;
    font-weight: 600;
    color: #f9fafb;
}

.prose h4 {
    margin-top: 1.5em;
    margin-bottom: 0.5em;
    font-size: 1em;
    font-weight: 600;
    color: #f9fafb;
}

.prose p {
    margin-top: 1.25em;
    margin-bottom: 1.25em;
}

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

.prose a:hover {
    text-decoration: underline;
}

.prose strong {
    color: #f9fafb;
    font-weight: 600;
}

.prose code {
    color: #818cf8;
    background-color: rgba(31, 41, 55, 0.8);
    padding: 0.2em 0.4em;
    border-radius: 0.25rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.875em;
}

.prose pre {
    background-color: #111827;
    overflow-x: auto;
    padding: 1em;
    border-radius: 0.5rem;
    border: 1px solid #374151;
    margin-top: 1.5em;
    margin-bottom: 1.5em;
}

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

.prose ul {
    list-style-type: disc;
    padding-left: 1.625em;
    margin-top: 1.25em;
    margin-bottom: 1.25em;
}

.prose ol {
    list-style-type: decimal;
    padding-left: 1.625em;
    margin-top: 1.25em;
    margin-bottom: 1.25em;
}

.prose li {
    margin-top: 0.5em;
    margin-bottom: 0.5em;
}

.prose blockquote {
    font-style: italic;
    color: #9ca3af;
    border-left: 4px solid #4b5563;
    padding-left: 1em;
    margin-top: 1.6em;
    margin-bottom: 1.6em;
    margin-left: 0;
    margin-right: 0;
}

.prose img {
    max-width: 100%;
    height: auto;
    border-radius: 0.375rem;
    display: block;
    margin: 2em 0;
}

.prose table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 2em;
    margin-bottom: 2em;
    font-size: 0.875em;
}

.prose thead {
    border-bottom: 2px solid #374151;
}

.prose th {
    padding: 0.5em;
    text-align: left;
    font-weight: 600;
    color: #f9fafb;
}

.prose td {
    padding: 0.5em;
    border-bottom: 1px solid #374151;
}

.prose tr:nth-child(2n) td {
    background-color: rgba(31, 41, 55, 0.3);
}

.prose hr {
    border-color: #374151;
    border-top-width: 1px;
    margin-top: 3em;
    margin-bottom: 3em;
}