/* ==========================================
   MERMAID DIAGRAMS
   ========================================== */

.diagram-container {
    margin: 1.5rem 0;
    padding: 1rem;
    background: var(--bg-card);
    border-radius: 8px;
    border: 1px solid var(--border);
    overflow-x: auto;
}

.diagram-container h3,
.diagram-container h4 {
    color: var(--text-bright);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.diagram-container .mermaid {
    display: flex;
    justify-content: center;
    min-height: 200px;
}

.diagram-container .mermaid svg {
    max-width: 100%;
    height: auto;
}

/* ERD specific */
.diagram-erd {
    margin-bottom: 2rem;
    border-left: 3px solid var(--primary);
}

/* State machine specific */
.diagram-state-machine {
    border-left: 3px solid var(--accent);
}

/* Sequence diagram specific */
.diagram-sequence {
    border-left: 3px solid var(--success);
}

/* Diagram section header */
.diagram-section-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    color: var(--text-bright);
    font-size: 1.2rem;
    font-weight: 600;
}

.diagram-section-header::before {
    content: '';
    width: 4px;
    height: 1.2em;
    background: var(--primary);
    border-radius: 2px;
}

/* No diagrams fallback */
.diagram-empty {
    color: var(--text-muted);
    font-style: italic;
    padding: 1rem;
    text-align: center;
}
