/* Body Fat Calculator Specific Styles */

/* Radio group for measurement system and gender */
.radio-group {
    display: flex;
    gap: 16px;
    margin-top: 8px;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

/* Input with unit label */
.input-unit-group {
    display: flex;
    gap: 8px;
    align-items: stretch;
}

.input-unit-group .form-input {
    flex: 1;
}

.unit-label {
    min-width: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 0 8px;
    color: #666;
    font-size: 14px;
}

/* Imperial height group - two inputs side by side */
.height-imperial-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

/* Hip measurement group - hidden by default for males */
.hip-group {
    display: none;
}

.hip-group.visible {
    display: block;
}

/* Results styling */
.result-card {
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    border-radius: 8px;
    padding: 16px;
    text-align: center;
}

.result-card.primary {
    background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 100%);
    border-color: #7dd3fc;
    margin-bottom: 16px;
}

.result-label {
    font-size: 14px;
    color: #0369a1;
    margin-bottom: 8px;
    font-weight: 500;
}

.result-value {
    font-size: 28px;
    font-weight: 700;
    color: #003049;
}

.result-card.primary .result-value {
    font-size: 36px;
}

.result-category {
    font-size: 16px;
    color: #0369a1;
    margin-top: 8px;
    font-weight: 500;
    padding: 4px 12px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 20px;
    display: inline-block;
}

.result-cards-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

/* Section title */
.section-title {
    font-size: 16px;
    color: #003049;
    margin: 24px 0 12px 0;
    padding-bottom: 8px;
    border-bottom: 2px solid #bae6fd;
}

/* Ranges table */
.ranges-table {
    background: #f8fafc;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
}

.range-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding: 10px 16px;
    border-bottom: 1px solid #e2e8f0;
}

.range-row:last-child {
    border-bottom: none;
}

.range-row.header {
    background: #e0f2fe;
    font-weight: 600;
    color: #0369a1;
}

.range-row.current {
    background: #dcfce7;
    font-weight: 500;
}

.range-category {
    color: #334155;
}

.range-value {
    text-align: right;
    color: #475569;
}

/* Category colors */
.category-essential { color: #dc2626; }
.category-athletes { color: #ea580c; }
.category-fitness { color: #16a34a; }
.category-average { color: #2563eb; }
.category-obese { color: #7c3aed; }

/* Responsive adjustments */
@media (max-width: 480px) {
    .height-imperial-group {
        grid-template-columns: 1fr;
    }

    .result-cards-row {
        grid-template-columns: 1fr;
    }

    .result-value {
        font-size: 24px;
    }

    .result-card.primary .result-value {
        font-size: 30px;
    }

    .range-row {
        padding: 8px 12px;
        font-size: 14px;
    }
}
