/* Body Fat Analysis Specific Styles */

.bfa-sliders-section {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.bfa-slider-group {
    text-align: left;
    margin: 2rem;
    width: 20vw;
    min-width: 200px;
}

.bfa-results-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.bfa-bar-label {
    width: 6rem;
    font-size: 0.875rem;
    color: #d1d5db;
    font-weight: 500;
    text-align: center;
}

.bfa-inputs {
    padding: 0 2rem;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.body-fat-categories {
    margin-top: 3rem;
}

.categories-title {
    font-size: 1.5rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 1.5rem;
    color: #ff8c00;
}

.categories-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}


.category-card {
    background: rgba(39, 39, 42, 0.8);
    padding: 1.5rem;
    border-radius: 0.75rem;
    border: 1px solid rgba(63, 63, 70, 0.5);
}

.category-bars {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.category-bar {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.bar-color {
    width: 1rem;
    height: 1rem;
    border-radius: 50%;
    flex-shrink: 0;
}

.bar-color.essential-fat {
    background-color: #3b82f6;
}

.bar-color.athletic {
    background-color: #10b981;
}

.bar-color.fitness {
    background-color: #eab308;
}

.bar-color.average {
    background-color: #f97316;
}

.bar-color.obese {
    background-color: #ef4444;
}

.bar-fill {
    flex: 1;
    background: rgba(63, 63, 70, 1);
    height: 1.5rem;
    border-radius: 9999px;
    overflow: hidden;
    position: relative;
}

.bar-progress {
    height: 100%;
    border-radius: 9999px;
    transition: width 0.3s ease;
}

.bar-progress.essential-fat {
    background-color: #3b82f6;
}

.bar-progress.athletic {
    background-color: #10b981;
}

.bar-progress.fitness {
    background-color: #eab308;
}

.bar-progress.average {
    background-color: #f97316;
}

.bar-progress.obese {
    background-color: #ef4444;
}

.bar-percentage {
    width: 4rem;
    text-align: right;
    font-size: 0.875rem;
    color: #d1d5db;
    flex-shrink: 0;
}


.improvement-section {
    margin-top: 3rem;
    text-align: center;
}

.improvement-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: #ff8c00;
}

.improvement-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1.5rem;
}


.improvement-card {
    background: rgba(39, 39, 42, 0.8);
    padding: 1.5rem;
    border-radius: 0.75rem;
    border: 1px solid rgba(63, 63, 70, 0.5);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.improvement-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(255, 140, 0, 0.1);
}

.improvement-icon {
    display: flex;
    justify-content: center;
    margin-bottom: 1rem;
    color: #ff8c00;
}

.improvement-card-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #ff8c00;
}

.improvement-card-text {
    color: #d1d5db;
    text-align: center;
    line-height: 1.5;
    margin: 0;
}



@media (min-width: 768px) and (max-width: 1024px) {

    .bar-color {
        display: none;
    }

}


@media (max-width: 768px) {
    .categories-grid {
        grid-template-columns: 1fr;
    }
    .bfa-sliders-section {
        gap: 2rem;
        margin-bottom: 2rem;
    }

    .bfa-slider-group {
        margin: unset;
    }

}



@media (max-width: 640px) {
    .improvement-grid {
        grid-template-columns: 1fr 1fr;
    }
}



@media (max-width: 480px) {
    .improvement-grid {
        grid-template-columns: 1fr;
    }
}