/* Basic styling for chart and diagram containers */
.chart-wrapper, .diagram-wrapper {
    position: relative;
    margin-bottom: 20px;
}

/* Placeholder styling */
.chart-placeholder, .diagram-placeholder {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    background: #f9f9f9;
    color: #888;
    border-radius: 4px;
    border: 1px solid #eee;
}

/* Simple loading animation */
.chart-placeholder:after, .diagram-placeholder:after {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    margin-left: 10px;
    border: 2px solid #ddd;
    border-top: 2px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}



/* Basic diagram styling */
[data-diagram-type] {
    background-color: #f9f9f9;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

[data-diagram-type]:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
}

/* mxGraph container styles */
.mxTooltip {
    background: #ffffff;
    border: 1px solid #cccccc;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    padding: 6px 10px;
    border-radius: 3px;
    font-family: Arial, sans-serif;
    font-size: 12px;
}