/* Custom styles cho Markdown content */

#content {
    line-height: 1.8;
}

#content h1 {
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #1a202c;
    border-bottom: 2px solid #e5e7eb;
    padding-bottom: 0.5rem;
}

#content h2 {
    font-size: 1.875rem;
    font-weight: 600;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: #2d3748;
}

#content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    color: #4a5568;
}

#content p {
    margin-bottom: 1rem;
    color: #4a5568;
}

#content a {
    color: #3182ce;
    text-decoration: none;
}

#content a:hover {
    text-decoration: underline;
}

#content a.internal-link::after {
    content: ' ↗';
    font-size: 0.75rem;
    opacity: 0.6;
}

#content ul, #content ol {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

#content li {
    margin-bottom: 0.5rem;
}

#content code {
    background-color: #f7fafc;
    padding: 0.2rem 0.4rem;
    border-radius: 0.25rem;
    font-family: 'Courier New', monospace;
    font-size: 0.875rem;
    color: #e53e3e;
}

#content pre {
    background-color: #2d3748;
    padding: 1.5rem;
    border-radius: 0.75rem;
    overflow-x: auto;
    margin-bottom: 1.5rem;
}

#content pre code {
    background-color: transparent;
    color: #e2e8f0;
    padding: 0;
}

#content blockquote {
    border-left: 4px solid #3182ce;
    padding-left: 1rem;
    margin-left: 0;
    margin-bottom: 1rem;
    color: #4a5568;
    font-style: italic;
}

#content table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.5rem;
}

#content th, #content td {
    border: 1px solid #e5e7eb;
    padding: 0.75rem;
    text-align: left;
}

#content th {
    background-color: #f7fafc;
    font-weight: 600;
}

#content img {
    max-width: 100%;
    height: auto;
    border-radius: 0.5rem;
    margin: 1.5rem 0;
}

/* Scrollbar styling */
aside::-webkit-scrollbar,
main::-webkit-scrollbar {
    width: 8px;
}

aside::-webkit-scrollbar-track,
main::-webkit-scrollbar-track {
    background: transparent;
}

aside::-webkit-scrollbar-thumb,
main::-webkit-scrollbar-thumb {
    background-color: #cbd5e0;
    border-radius: 4px;
}

aside::-webkit-scrollbar-thumb:hover,
main::-webkit-scrollbar-thumb:hover {
    background-color: #a0aec0;
}

