/* Custom scrollbar for webkit browsers */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}
::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: #555;
}
html {
    scroll-behavior: smooth;
}
.code-block-container {
    position: relative;
}
.copy-button {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    background-color: #0ea5e9; /* sky-500 */
    color: white;
    border: none;
    border-radius: 0.25rem;
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.2s;
}
.copy-button:hover {
    opacity: 1;
    background-color: #0284c7; /* sky-600 */
}
.collapsible-content {
    display: none;
    padding-left: 1rem; /* Indent content */
}
.collapsible-content.open {
    display: block;
}
.collapsible-trigger {
    cursor: pointer;
}
.active-nav-link {
    background-color: #0ea5e9; /* sky-500 */
    color: white !important;
    font-weight: 600;
}
/* Basic styling for pre and code, Tailwind handles most */
pre {
    background-color: #1e293b; /* slate-800 */
    color: #f1f5f9; /* slate-100 */
    padding: 1rem;
    border-radius: 0.375rem; /* rounded-md */
    overflow-x: auto;
    margin-bottom: 1rem;
}
code {
    font-family: 'Courier New', Courier, monospace;
}
h2 { margin-top: 2rem; margin-bottom: 1rem; font-size: 1.875rem; line-height: 2.25rem; font-weight: 600; color: #1e293b; /* slate-800 */ border-bottom: 2px solid #cbd5e1; /* slate-300 */ padding-bottom: 0.5rem; }
h3 { margin-top: 1.5rem; margin-bottom: 0.75rem; font-size: 1.5rem; line-height: 2rem; font-weight: 600; color: #334155; /* slate-700 */ }
h4 { margin-top: 1rem; margin-bottom: 0.5rem; font-size: 1.25rem; line-height: 1.75rem; font-weight: 600; color: #475569; /* slate-600 */ }
p, ul, ol { margin-bottom: 1rem; line-height: 1.625; color: #334155; /* slate-700 */ }
ul, ol { margin-left: 1.5rem; }
li { margin-bottom: 0.25rem; }
table { width: 100%; border-collapse: collapse; margin-bottom: 1rem; }
th, td { border: 1px solid #cbd5e1; /* slate-300 */ padding: 0.75rem; text-align: left; }
th { background-color: #f1f5f9; /* slate-100 */ font-weight: 600; color: #1e293b; /* slate-800 */ }
#main-content section:not(:last-child) {
    margin-bottom: 3rem; /* Space between main sections */
}