/* =============================================
   BMI CALCULATOR — bmi.css
   Tool-specific styles only.
   Common styles are in tool.css
   ============================================= */

.bmi-calc { width: 100%; }

/* Radio group */
.bmi-radio-group {
    display: flex;
    gap: 24px;
    padding: 10px 0;
}
.bmi-radio-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 500;
    color: var(--text);
    cursor: pointer;
}
.bmi-radio-label input[type="radio"] {
    width: 18px;
    height: 18px;
    accent-color: var(--teal);
    cursor: pointer;
}

/* Dual input for ft + in */
.bmi-dual-input {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

/* Inputs + results side by side */
#panel-us .mort-layout,
#panel-metric .mort-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    align-items: start;
}

/* Results box */
.bmi-results {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}
.bmi-result-header {
    width: 100%;
    background: #16a34a;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    padding: 10px 16px;
    border-radius: 6px;
}
.bmi-result-value {
    width: 100%;
    font-size: 16px;
    color: var(--text);
    padding: 4px 0;
}
#usGauge, #metGauge {
    width: 100%;
    max-width: 260px;
    height: auto;
}
.bmi-extra { width: 100%; }
.bmi-extra-list {
    list-style: disc;
    padding-left: 20px;
    font-size: 14px;
    color: var(--text2);
    line-height: 2;
    margin-bottom: 12px;
}
.bmi-extra-list li strong { color: var(--navy); }
.bmi-print-row { display: flex; justify-content: flex-end; }

/* =============================================
   OTHER UNITS — Sub-tabs
   ============================================= */
.unit-subtabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--border);
}
.unit-subtab {
    padding: 8px 18px;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    font-size: 13px;
    font-weight: 600;
    color: var(--muted);
    cursor: pointer;
    font-family: var(--font-main);
    transition: all 0.2s;
    margin-bottom: -2px;
    white-space: nowrap;
}
.unit-subtab:hover { color: var(--navy); background: var(--light); }
.unit-subtab.active {
    color: var(--teal);
    border-bottom-color: var(--teal);
}

/* =============================================
   OTHER UNITS — Converter layout
   ============================================= */
.unit-converter-wrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}
.unit-col { display: flex; flex-direction: column; gap: 8px; }
.unit-col-label {
    font-size: 14px;
    font-weight: 700;
    color: var(--navy);
}
.unit-from-input,
.unit-to-input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 15px;
    font-family: var(--font-main);
    color: var(--text);
    background: var(--white);
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.2s;
}
.unit-from-input:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(0,201,167,0.1); }
.unit-to-input { background: var(--light); color: var(--muted); cursor: default; }

.unit-list {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 14px;
    font-family: var(--font-main);
    color: var(--text);
    background: var(--white);
    outline: none;
    padding: 4px;
    min-height: 160px;
    cursor: pointer;
}
.unit-list option {
    padding: 7px 10px;
    border-radius: 4px;
    font-size: 13px;
    color: var(--text);
}
.unit-list option:checked,
.unit-list option:hover {
    background: var(--teal);
    color: var(--navy);
}

@media (max-width: 768px) {
    #panel-us .mort-layout,
    #panel-metric .mort-layout,
    .unit-converter-wrap {
        grid-template-columns: 1fr;
    }
    .bmi-dual-input { grid-template-columns: 1fr 1fr; }
}