/* Estilos para os gráficos donut de progresso */
.donut-section {
    padding: 70px 0;
    background-color: #003366;
    color: white;
    position: relative;
    overflow: hidden;
}

/* Container wrapper para centralização */
.donut-wrapper {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    overflow: hidden;
    padding: 0 50px;
}

/* Estilos para donut charts */
.donut-chart-container {
    display: flex;
    justify-content: flex-start;
    flex-wrap: nowrap;
    gap: 30px;
    transition: transform 0.5s ease;
    width: fit-content;
    margin: 0 auto;
    padding: 20px 0;
    will-change: transform;
}

.donut-item {
    text-align: center;
    width: 150px;
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 0 0 auto;
    opacity: 1;
    transition: opacity 0.3s ease, transform 0.3s ease;
    will-change: opacity, transform;
}

.donut-item.clone {
    pointer-events: none;
}

.donut-item.hidden {
    opacity: 0;
    transform: scale(0.95);
    pointer-events: none;
}

.donut-chart {
    position: relative;
    width: 100px;
    height: 100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.donut-chart canvas {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.donut-chart .center {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    position: absolute;
    top: 10px;
    left: 10px;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 600;
}

.percentage {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 20px;
    font-weight: bold;
    color: #ffffff;
    z-index: 1;
    text-align: center;
    width: 100%;
    line-height: 1;
}

.donut-title {
    margin-top: 15px;
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
    text-align: center;
    width: 100%;
    line-height: 1.4;
}

/* Estilos para os botões de navegação */
.donut-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
    backdrop-filter: blur(4px);
}

.donut-nav:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-50%) scale(1.1);
}

.donut-nav.prev {
    left: 0;
}

.donut-nav.next {
    right: 0;
}

/* Ajustes responsivos */
@media (max-width: 768px) {
    .donut-section {
        padding: 40px 0;
    }

    .donut-wrapper {
        max-width: 100%;
        padding: 0 45px;
        margin: 0 auto;
    }

    .donut-chart-container {
        gap: 20px;
        padding: 15px 0;
    }
    
    .donut-item {
        width: 95px;
    }
    
    .donut-chart {
        width: 80px;
        height: 80px;
    }
    
    .donut-chart .center {
        top: 8px;
        left: 8px;
        width: 64px;
        height: 64px;
    }
    
    .percentage {
        font-size: 16px;
    }
    
    .donut-title {
        font-size: 11px;
        margin-top: 8px;
        line-height: 1.2;
        max-width: 90px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .donut-nav {
        width: 36px;
        height: 36px;
        font-size: 20px;
        background: rgba(255, 255, 255, 0.2);
        position: absolute;
        top: 50%;
    }

    .donut-nav.prev {
        left: 5px;
    }

    .donut-nav.next {
        right: 5px;
    }
}

@media (max-width: 480px) {
    .donut-section {
        padding: 30px 0;
    }

    .donut-wrapper {
        padding: 0 40px;
    }

    .donut-chart-container {
        gap: 15px;
        padding: 10px 0;
    }

    .donut-item {
        width: 85px;
    }
    
    .donut-chart {
        width: 70px;
        height: 70px;
    }
    
    .donut-chart .center {
        top: 7px;
        left: 7px;
        width: 56px;
        height: 56px;
    }
    
    .percentage {
        font-size: 14px;
    }
    
    .donut-title {
        font-size: 10px;
        margin-top: 6px;
        max-width: 80px;
        line-height: 1.1;
    }
    
    .donut-nav {
        width: 32px;
        height: 32px;
        font-size: 16px;
    }
}

/* Animação para os números percentuais */
@keyframes countUp {
    from {
        counter-increment: count 0;
        content: counter(count);
    }
    to {
        counter-increment: count var(--end-count);
        content: counter(count);
    }
}

.animate-count {
    counter-reset: count 0;
    --end-count: attr(data-count);
}

