/* Force Mermaid dark theme compatibility */
.mermaid .node rect,
.mermaid .node circle,
.mermaid .node ellipse,
.mermaid .node polygon,
.mermaid .node path {
    stroke: #666 !important;
}

.mermaid .nodeLabel,
.mermaid .edgeLabel,
.mermaid .label {
    color: #e0e0e0 !important;
    fill: #e0e0e0 !important;
}

.mermaid .edgeLabel rect {
    fill: #1e1e2e !important;
    opacity: 0.9 !important;
}

.mermaid .cluster rect {
    fill: #2a2a3e !important;
    stroke: #555 !important;
}

.mermaid .cluster .nodeLabel,
.mermaid .cluster-label .nodeLabel {
    color: #e0e0e0 !important;
    fill: #e0e0e0 !important;
}

.mermaid .flowchart-link {
    stroke: #888 !important;
}

.mermaid marker path {
    fill: #888 !important;
}
