/* Diagramming Components Styles */

/* Mermaid diagram container */
.mermaid-container {
    width: 100%;
    overflow: auto;
    background: transparent;
}

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

/* Mermaid editor layout */
.mermaid-editor {
    display: flex;
    gap: 16px;
    height: 600px;
}

.mermaid-editor-input {
    flex: 1;
    min-width: 0;
}

.mermaid-editor-preview {
    flex: 1;
    min-width: 0;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 16px;
    overflow: auto;
}

/* Excalidraw container */
.excalidraw-container {
    width: 100%;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
}

/* Loading states */
.diagram-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    color: #666;
}

/* Error states */
.diagram-error {
    padding: 16px;
    border: 1px solid #f44336;
    border-radius: 4px;
    background-color: #ffebee;
    color: #c62828;
}

/* Diagram toolbar */
.diagram-toolbar {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

/* Responsive adjustments */
@media (max-width: 960px) {
    .mermaid-editor {
        flex-direction: column;
        height: auto;
    }

    .mermaid-editor-input,
    .mermaid-editor-preview {
        min-height: 300px;
    }
}
