.wcs_chart {
    flex: 4;
    -webkit-box-shadow: 2px 4px 10px 1px rgba(0, 0, 0, 0.47);
    box-shadow: 2px 4px 10px 1px rgba(201, 201, 201, 0.47);
    color: gray;
    padding: 5px;
    border-radius: 6px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    // background: linear-gradient(to bottom, #fff, #fafafa);

    &:hover {
        box-shadow: 4px 6px 15px 2px rgba(201, 201, 201, 0.6);
    }

    .wcs_title {
        margin: 20px;
        font-weight: 600;
        font-size: 1.2rem;
        letter-spacing: 0.02em;
        position: relative;

        &:after {
            content: '';
            position: absolute;
            bottom: -8px;
            left: 0;
            width: 130px;
            height: 3px;
            background: linear-gradient(to right, #8884d8, #82ca9d);
            border-radius: 1.5px;
        }
    }

    // New stats summary styles
    .stats_summary {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 20px;
        padding: 20px;
        margin-top: 20px;
        border-top: 1px solid rgba(201, 201, 201, 0.3);

        .stat_item {
            text-align: center;
            padding: 15px;
            border-radius: 8px;
            background: rgba(255, 255, 255, 0.8);
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
            transition: transform 0.2s ease;

            &:hover {
                transform: translateY(-2px);
            }

            h3 {
                font-size: 1.8rem;
                font-weight: 600;
                margin: 0 0 8px 0;
            }

            p {
                margin: 0;
                font-size: 0.9rem;
                color: #666;
                line-height: 1.2;
            }

            &.failed h3 {
                color: #8884d8;
            }

            &.person h3 {
                color: #ff7300;
            }

            &.total h3 {
                color: #82ca9d;
            }

            &.attempt h3 {
                color: #8884d8;
            }
        }
    }

    .wcs_chartGrid {
        stroke: rgb(228, 255, 255);
        stroke-width: 0.8;
        stroke-dasharray: 5, 5;
    }

    .wcs_left {
        padding: 10px 0;
    }

    .recharts-cartesian-axis-line {
        stroke: #d1d1d1;
        stroke-width: 1.5px;
    }

    .recharts-cartesian-axis-tick-line {
        stroke: #d1d1d1;
    }

    .recharts-text {
        font-family: inherit;
        font-weight: 500;
    }

    .recharts-dot {
        transition: r 0.3s ease, stroke-width 0.3s ease;

        &:hover {
            r: 5;
            stroke-width: 2;
        }
    }

    .recharts-tooltip-wrapper {
        .recharts-default-tooltip {
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
            border: none;
            padding: 10px;
            background: rgba(255, 255, 255, 0.95);
            border-radius: 4px;

            p.recharts-tooltip-label {
                font-weight: 600;
                margin-bottom: 5px;
                color: #333;
            }
        }
    }

    // Add subtle animation for chart areas
    .recharts-area {
        opacity: 0;
        animation: fadeIn 0.8s forwards;
        animation-delay: 0.2s;
    }

    @keyframes fadeIn {
        from {
            opacity: 0;
            transform: translateY(5px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    // Responsive adjustments
    @media (max-width: 1366px) {
        .stats_summary {
            gap: 15px;
            padding: 15px;

            .stat_item {
                padding: 12px;

                h3 {
                    font-size: 1.5rem;
                }

                p {
                    font-size: 0.8rem;
                }
            }
        }
    }

    @media (max-width: 768px) {
        .stats_summary {
            grid-template-columns: repeat(2, 1fr);
            gap: 10px;
            padding: 10px;
        }
    }
}

// Pro badge - enhanced
.wcs_chart_free {
    position: relative;

    h4.pro_badge {
        position: absolute;
        right: 0px;
        background: linear-gradient(135deg, #8504a7, #614ad3);
        color: white;
        padding: 3px 10px;
        border-top-left-radius: 8px;
        border-bottom-left-radius: 1px;
        font-weight: 600;
        letter-spacing: 0.05em;
        z-index: 10;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);

        animation-name: glow;
        animation-duration: 1s;
        animation-iteration-count: infinite;
        animation-direction: alternate;

        @keyframes glow {
            from {
                text-shadow: 0px 0px 5px #fff, 0px 0px 5px #614ad3;
            }

            to {
                text-shadow: 0px 0px 20px #fff, 0px 0px 20px #614ad3;
            }
        }

        &:before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), transparent);
            border-top-left-radius: 8px;
            border-bottom-left-radius: 1px;
            pointer-events: none;
        }
    }

    .wec_left_free {
        opacity: 0.4;
        background-color: rgba(250, 250, 250, 0.2);
        position: relative;

        &:after {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: repeating-linear-gradient(45deg,
                    rgba(200, 200, 200, 0.1),
                    rgba(200, 200, 200, 0.1) 10px,
                    rgba(220, 220, 220, 0.1) 10px,
                    rgba(220, 220, 220, 0.1) 20px);
            pointer-events: none;
        }
    }
}

// Enhanced color definitions
#colorFailed stop {
    &:first-child {
        stop-color: #8884d8;
        stop-opacity: 0.9;
    }

    &:last-child {
        stop-color: #8884d8;
        stop-opacity: 0.1;
    }
}

#colorSuccess stop {
    &:first-child {
        stop-color: #ff7300;
        stop-opacity: 0.9;
    }

    &:last-child {
        stop-color: #ff7300;
        stop-opacity: 0.1;
    }
}

#colorNew stop {
    &:first-child {
        stop-color: #82ca9d;
        stop-opacity: 0.9;
    }

    &:last-child {
        stop-color: #82ca9d;
        stop-opacity: 0.1;
    }
}

// Responsive adjustments that won't break layout
@media (max-width: 1366px) {
    .wcs_chart {
        .wcs_title {
            margin: 16px;
            font-size: 1.1rem;
        }
    }
}

@media (max-width: 768px) {
    .wcs_chart {
        flex: auto;
        margin-bottom: 20px;

        .wcs_title {
            margin: 12px;
            font-size: 1rem;
        }
    }
}