    .custom-chart-container {
        position: relative;
        width: 100%;
        max-width: 400px;
        margin: 0 auto;
        aspect-ratio: 1;
        height: auto;
    }
    
    /* Remove the explicit dimensions for light/dark charts and make them consistent with universal chart */
        /* Standardize chart container dimensions across all chart types */
    @media (min-width: 1200px) {
        .custom-chart-container {
            width: 50%;
            min-width: 400px;
            max-width: 400px;
            height: auto;
        }
    }
    @media (min-width: 768px) and (max-width: 1199px) {
        .custom-chart-container {
            width: 70%;
            min-width: 350px;
            max-width: 350px;
            height: auto;
        }
    }
    @media (max-width: 767px) {
        .custom-chart-container {
            width: 90%;
            min-width: 250px;
            max-width: 250px;
            height: auto;
        }
    }
    
    /* Mode Switcher Styles */
    .mode-switcher {
        display: flex;
        justify-content: center;
        background-color: #f5f5f5;
        border-radius: 30px;
        padding: 5px;
        box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    }
    
    .mode-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 8px 16px;
        border-radius: 30px;
        color: #333;
        font-weight: 500;
        text-decoration: none;
        transition: all 0.3s ease;
        margin: 0 5px;
    }
    
    .mode-btn i {
        margin-right: 8px;
    }
    
    .mode-btn.active {
        background-color: var(--button-primary-color, #fe1a3f);
        color: #fff;
        box-shadow: 0 2px 4px rgba(15, 98, 254, 0.3);
    }
    
    .light-mode-btn:not(.active):hover {
        background-color: rgba(255, 193, 7, 0.1);
    }
    
    .dark-mode-btn:not(.active):hover {
        background-color: rgba(73, 80, 246, 0.1);
    }
    
    .custom-chart-tooltip {
        position: absolute;
        background: rgba(255, 255, 255, 0.9);
        padding: 6px 10px;
        border-radius: 4px;
        font-size: 13px;
        pointer-events: none;
        z-index: 100;
        display: none;
        border: none;
        box-shadow: none;
        display: flex;
        align-items: center;
        gap: 6px;
        opacity: 0;
        transition: opacity 0.4s ease;
        top: 50% !important;
        left: 50% !important;
        transform: translate(-50%, -50%);
    }
    
    .custom-chart-tooltip .color-dot {
        width: 12px;
        height: 12px;
        border-radius: 3px;
        border: none;
    }
    
    .custom-chart-tooltip .tooltip-text {
        color: #333;
        font-weight: 500;
        white-space: nowrap;
    }
    
    .color-legend-item {
        display: flex;
        align-items: center;
        width: calc(33.333% - 8px);
        background: rgba(0,0,0,0.02);
        padding: 8px 12px;
        border-radius: 4px;
        font-size: 14px;
        transition: all 0.4s ease;
        border: 1px solid rgb(232,232,232);
        cursor: pointer;
    }
    
    .color-legend-item:hover {
        background: rgba(0,0,0,0.05) !important;
        transform: translateY(-1px) !important;
    }
    
    /* Update legend styles for better responsiveness */
    .chart-legend {
        margin-top: 1.5rem;
        padding: 0 1.5rem;
    }

    .legend-items-container {
        display: flex;
        flex-wrap: wrap;
        gap: 12px;
        justify-content: flex-start;
        width: 100%;
    }

    @media (min-width: 992px) {
        .color-legend-item {
            width: calc(33.333% - 8px) !important;
        }
    }
    @media (min-width: 768px) and (max-width: 991px) {
        .color-legend-item {
            width: calc(50% - 6px) !important;
        }
    }
    @media (max-width: 767px) {
        .color-legend-item {
            width: 100% !important;
        }
        .chart-legend {
            margin-top: 1.5rem;
        }
    }

    /* Update container styles */
    .module-color-ratio-chart {
        padding: 2rem 0;
    }

    .module-color-ratio-chart .container {
        max-width: 1200px;
        margin: 0 auto;
    }

    /* Update chart wrapper styles */
    .chart-wrapper {
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 1.5rem 0;
        min-height: unset;
    }

    /* Ensure tab panes have equal dimensions */
    .tab-pane.chart-wrapper {
        min-height: unset;
    }
    
    /* Hide chart container initially in non-active tabs */
    .tab-pane:not(.active) .custom-chart-container {
        opacity: 0;
    }
    
    /* Show chart when tab is active */
    .tab-pane.active .custom-chart-container {
        opacity: 1;
        transition: opacity 0.3s ease-in;
    }

    /* Tab Switcher Styles - New */
    .tab-switcher {
        display: flex;
        justify-content: center;
        width: 100%;
        max-width: 100%;
        margin: 0;
        border-bottom: none;
    }

    .tab-btn {
        color: #757575;
        background: none;
        border: none;
        cursor: pointer;
        position: relative;
        flex: 1;
        text-align: center;
        margin: 0;
        padding: 0 1.25rem;
        height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-bottom: 1px solid transparent;
        border-radius: 0;
        font-weight: 400;
        font-size: 0.9rem;
        transition: none;
        outline: none;
    }

    .tab-btn i {
        margin-right: 8px;
        color: inherit;
    }

    .tab-btn.active {
        color: var(--button-primary-color, #fe1a3f);
        font-weight: 400;
        background-color: transparent;
    }

    .tab-btn.active::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 2px;
        background-color: var(--button-primary-color, #fe1a3f);
        display: block;
    }

    .tab-btn:hover:not(.active) {
        color: var(--button-primary-color, #fe1a3f);
    }

    /* Color Tabs (matching design from Velký vzorník) */
    .color-tabs-container {
        width: 100%;
        border: 1px solid #e0e0e0;
        border-radius: 4px;
        background-color: white;
        overflow: hidden;
        margin-bottom: 1rem;
    }

    .color-tabs-container .tab-switcher {
        display: flex;
        width: 100%;
        max-width: 100%;
        margin: 0;
        border-bottom: none;
    }

    .color-tabs-container .tab-btn {
        height: 44px;
        padding: 0 1.5rem;
        margin-bottom: -1px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 14px;
        position: relative;
        border-bottom: transparent solid 2px;
    }

    .color-tabs-container .tab-btn.active {
        position: relative;
        border-bottom: transparent solid 2px;
        margin-bottom: -1px;
    }

    .color-tabs-container .tab-btn.active::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 2px;
        background-color: var(--button-primary-color, #fe1a3f);
        margin-bottom: -1px;
    }

    /* Ensure chart containers have fixed height to prevent jumping */
    .chart-wrapper {
        min-height: 500px;
        height: auto;
        transition: none;
    }

    .custom-chart-container {
        min-height: 350px;
    }

    .tab-pane {
        transition: none;
        position: relative;
    }

    .tab-pane:not(.active) {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        z-index: -1;
        opacity: 0;
        pointer-events: none;
    }
