.chartCard {
    --pieChart-color-background: white;
    --pieChart-color-border: #f3f4f6;
    --pieChart-color-shadow: rgba(0, 0, 0, 0.1);
    --pieChart-color-title: #111827;
    --pieChart-color-legend-text: #374151;
    --pieChart-color-blue: #3b82f6;
    --pieChart-color-purple: #8b5cf6;

    background: var(--pieChart-color-background);
    border-radius: 0.75rem;
    padding: 1.5rem;
    border: 1px solid var(--pieChart-color-border);
    box-shadow: 0 4px 6px -1px var(--pieChart-color-shadow);

    &__title {
        font-size: 1.25rem;
        font-weight: 700;
        color: var(--pieChart-color-title);
        margin: 0 0 1rem 0;
    }

    &__container {
        height: 300px;
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }
}

.customPie {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    position: relative;
    margin-bottom: 1.5rem;
    transition: background 0.5s ease;

    &__hole {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 60%;
        height: 60%;
        background: var(--pieChart-color-background);
        border-radius: 50%;
    }

    &__legend {
        display: flex;
        gap: 1.5rem;
    }

    &__legendItem {
        display: flex;
        align-items: center;
        font-size: 0.875rem;
        color: var(--pieChart-color-legend-text);
    }

    &__dot {
        width: 0.75rem;
        height: 0.75rem;
        border-radius: 50%;
        margin-right: 0.5rem;

        &--blue {
            background: var(--pieChart-color-blue);
        }

        &--purple {
            background: var(--pieChart-color-purple);
        }
    }
}
