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

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

::-webkit-scrollbar-thumb {
    background: #1C1C3A;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #2D2D52;
}

/* D3 selection and links */
.link {
    stroke: #2D2D52;
    stroke-opacity: 0.6;
    fill: none;
    transition: stroke 0.2s;
}

.link:hover, .link.highlighted {
    stroke: #00CEC9;
    stroke-opacity: 1;
    stroke-width: 2px !important;
}

.node {
    cursor: pointer;
    stroke: #1C1C3A;
    stroke-width: 2px;
    transition: stroke-width 0.2s, stroke 0.2s;
}

.node:hover, .node.selected {
    stroke: #ffffff;
    stroke-width: 3px;
}

.node-label {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    fill: #A29BFE;
    pointer-events: none;
    text-shadow: 
        -1px -1px 2px #0A0A1A,
         1px -1px 2px #0A0A1A,
        -1px  1px 2px #0A0A1A,
         1px  1px 2px #0A0A1A;
}

.link-label {
    font-family: 'Inter', sans-serif;
    font-size: 10px;
    fill: #6C5CE7;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s;
    text-shadow: 
        -1px -1px 2px #0A0A1A,
         1px -1px 2px #0A0A1A,
        -1px  1px 2px #0A0A1A,
         1px  1px 2px #0A0A1A;
}

.link:hover + .link-label, .link.highlighted + .link-label {
    opacity: 1;
}

/* Base Prose Styles for Markdown rendering */
.prose {
    line-height: 1.6;
}
.prose h1, .prose h2, .prose h3 {
    margin-top: 1.5em;
    margin-bottom: 0.5em;
    font-weight: 600;
}
.prose h1 { font-size: 1.5em; }
.prose h2 { font-size: 1.25em; }
.prose h3 { font-size: 1.1em; color: #A29BFE; }
.prose ul { list-style-type: disc; padding-left: 1.5em; margin-bottom: 1em; }
.prose ol { list-style-type: decimal; padding-left: 1.5em; margin-bottom: 1em; }
.prose p { margin-bottom: 1em; }
.prose code { 
    background: #1C1C3A; 
    padding: 0.2em 0.4em; 
    border-radius: 4px; 
    font-size: 0.85em; 
    color: #00CEC9;
}
.prose pre {
    background: #0A0A1A;
    padding: 1em;
    border-radius: 8px;
    overflow-x: auto;
    margin-bottom: 1em;
    border: 1px solid #1C1C3A;
}
.prose pre code {
    background: transparent;
    padding: 0;
    color: inherit;
}
.prose a:hover {
    text-decoration: underline;
}
