.interactive-donut-chart-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    width: 100%;
}

.idc-chart-container {
    position: relative;
    /* Size controlled by Elementor setting, default below */
    width: 300px; 
    height: 300px;
}

.idc-svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg); /* Start at top */
    overflow: visible;
}

.idc-segment {
    transition: all 0.3s ease;
    cursor: pointer;
    transform-origin: center;
}

.idc-segment:hover {
    filter: brightness(1.1);
    transform: scale(1.05); 
    z-index: 10;
}

.idc-segment.active {
    stroke: #fff;
    stroke-width: 0.5px;
    filter: brightness(1.05);
    transform: scale(1.08);
}

.idc-legend {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-top: 10px;
}

.idc-legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    cursor: pointer;
    transition: opacity 0.2s;
}

.idc-legend-item:hover {
    opacity: 0.8;
}

.idc-legend-color {
    width: 20px;
    height: 10px;
    display: inline-block;
    border-radius: 2px;
}

.idc-details-box {
    width: 100%;
    max-width: 500px;
    text-align: center;
    background-color: #f9f9f9;
    border: 1px dashed #ccc;
    padding: 20px;
    min-height: 80px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
}

.idc-info-title {
    margin: 0 0 10px 0;
    font-size: 18px;
    color: inherit;
}

.idc-info-desc {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    color: inherit;
}

/* Animations */
@keyframes dash {
  from {
    stroke-dasharray: 0 1000;
  }
}
