/* CSP-compliant styles for transport route diagrams */

.transport-diagram-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 200px;
    color: white;
    font-family: 'Open Sans', sans-serif;
    font-size: 14px;
}

.transport-diagram-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 200px;
    background: transparent;
    width: 100%;
    overflow: auto;
}

/* Ensure SVG elements are visible */
.transport-diagram-container svg {
    max-width: 100%;
    height: auto;
    background: transparent;
}

/* Ensure Mermaid diagram elements are visible */
.transport-diagram-container .mermaid {
    background: transparent;
}

/* Force visibility of diagram content */
.transport-diagram-container * {
    visibility: visible !important;
}

.transport-diagram-error {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 200px;
    color: white;
    font-family: 'Open Sans', sans-serif;
    font-size: 14px;
    text-align: center;
}

.transport-diagram-error-detail {
    margin-top: 10px;
    font-size: 12px;
    opacity: 0.7;
}

/* Additional responsive styles */
@media (max-width: 768px) {
    .transport-diagram-empty,
    .transport-diagram-container,
    .transport-diagram-error {
        height: 150px;
        font-size: 12px;
    }
}
