/* Chart Block Styles */

.wp-block-chart-chart-block {
    border: 1px solid #ddd;
    padding: 16px;
    border-radius: 4px;
    background-color: #f9f9f9;
    margin: 16px 0;
}

.wp-block-chart-chart-block .chart-preview {
    padding: 20px;
    text-align: center;
    color: #666;
    font-style: italic;
}

.wp-block-chart-chart-block.has-selection {
    background-color: #e7f3ff;
    border-color: #0071cc;
}

/* Frontend Styles */

.wp-block-chart-chart-block svg {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

.wp-block-chart-chart-block .modal {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1050;
    display: none;
    width: 100%;
    height: 100%;
    overflow: hidden;
    outline: 0;
    background-color: rgba(0, 0, 0, 0.5);
}

.wp-block-chart-chart-block .modal.show {
    display: block;
}

.wp-block-chart-chart-block .modal-dialog {
    position: relative;
    width: auto;
    margin: 1.75rem auto;
    max-width: 500px;
}

.wp-block-chart-chart-block .modal-content {
    background-color: #fff;
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-radius: 0.25rem;
    box-shadow: 0 3px 9px rgba(0, 0, 0, 0.5);
}

.wp-block-chart-chart-block .modal-header {
    border-bottom: 1px solid #dee2e6;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 1rem;
}

.wp-block-chart-chart-block .modal-title {
    margin-bottom: 0;
    line-height: 1.5;
    font-size: 1.25rem;
    font-weight: 500;
}

.wp-block-chart-chart-block .modal-body {
    position: relative;
    flex: 1 1 auto;
    padding: 1rem;
}

.wp-block-chart-chart-block .modal-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    padding: 0.75rem;
    border-top: 1px solid #dee2e6;
}

/* Responsive */

@media (max-width: 576px) {
    .wp-block-chart-chart-block .modal-dialog {
        margin: 0.5rem;
        max-width: 100%;
    }
}
