/* ===========================================
   Body Fat Calculator - Tool Specific Styles (Purple/Indigo Theme)
   =========================================== */

/* Tool Layout */
.bfc-box {
    max-width: 650px;
    margin: 0 auto;
}

/* --- Toggles (Units and Gender) --- */
.bfc-unit-toggle, .bfc-gender-toggle {
    display: flex;
    margin-bottom: 20px;
    background: #eef2ff; /* Light Lavender */
    border-radius: 8px;
    padding: 5px;
}

.bfc-unit-toggle label, .bfc-gender-toggle label {
    flex-grow: 1;
    text-align: center;
    padding: 10px 15px;
    cursor: pointer;
    font-weight: 600;
    color: #4f46e5;
    transition: background 0.3s, color 0.3s;
    border-radius: 6px;
}

.bfc-unit-toggle input[type="radio"], .bfc-gender-toggle input[type="radio"] {
    display: none;
}

.bfc-unit-toggle input[type="radio"]:checked + label, 
.bfc-gender-toggle input[type="radio"]:checked + label {
    background: #6366f1; /* Primary Indigo highlight */
    color: white;
    box-shadow: 0 2px 5px rgba(99, 102, 241, 0.4);
}


/* --- Controls and Inputs --- */
.bfc-controls {
    background: #f8f7ff; 
    padding: 30px;
    border-radius: 12px;
    border: 1px solid #c7d2fe;
    margin-bottom: 30px;
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Two columns for measurements */
    gap: 20px;
}

.bfc-input-group {
    display: flex;
    flex-direction: column;
}

.bfc-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #4f46e5; 
    margin-bottom: 6px;
}

.bfc-input-addon {
    display: flex;
    align-items: center;
}

.bfc-input-addon .bfc-input {
    padding: 10px;
    border: 1px solid #a5b4fc; 
    border-radius: 0 6px 6px 0;
    font-size: 1.1rem;
    color: #1f2937;
    width: 100%;
    text-align: right;
    border-left: none;
}

.bfc-input-addon span {
    background-color: #eef2ff;
    border: 1px solid #a5b4fc;
    border-right: none;
    padding: 10px;
    border-radius: 6px 0 0 6px;
    font-size: 1.1rem;
    color: #4f46e5;
    width: 50px; 
    text-align: center;
}

/* --- Results Summary --- */
.bfc-results-section {
    margin-top: 30px;
    text-align: center;
}

.bfc-summary {
    padding: 25px;
    background: #f8f7ff; 
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.bfc-result-label {
    font-size: 1rem;
    color: #4f46e5;
    font-weight: 600;
    margin-bottom: 5px;
}

.bfc-score-value {
    font-size: 3rem;
    font-weight: 800;
    color: #6366f1;
    line-height: 1.1;
    margin-bottom: 10px;
}

.bfc-category-text {
    font-size: 1.5rem;
    font-weight: 700;
    padding: 8px 15px;
    border-radius: 6px;
    display: inline-block;
}

/* Category Color Coding */
.category-essential {
    background-color: #fca5a5; /* Light Red/Pink */
    color: #7f1d1d; 
}
.category-athlete {
    background-color: #60a5fa; /* Blue */
    color: white; 
}
.category-fitness {
    background-color: #34d399; /* Green */
    color: white;
}
.category-acceptable {
    background-color: #fbbf24; /* Amber/Yellow */
    color: #78350f; 
}
.category-obese {
    background-color: #ef4444; /* Red */
    color: white; 
}

/* Responsive adjustments */
@media (max-width: 600px) {
    .bfc-controls {
        grid-template-columns: 1fr; 
    }
    .bfc-score-value {
        font-size: 2.5rem;
    }
    .bfc-category-text {
        font-size: 1.2rem;
    }
}