/* BMI Calculator Specific UI (No Inline CSS) */

.hidden {
    display: none !important;
}

/* Input Grids */
.bmi-input-grid { 
    display: grid; 
    grid-template-columns: 1fr auto; 
    gap: 15px; 
}

.dual-inputs { 
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    gap: 15px; 
}

.bmi-select {
    width: 120px;
    cursor: pointer;
    text-align: center;
}

/* Result Box (Pro Redesign) */
.bmi-result-box {
    margin-top: 35px;
    padding-top: 35px;
    border-top: 1px dashed var(--border);
    animation: fadeIn 0.4s ease;
}

.bmi-pro-header {
    background: var(--bg-secondary);
    padding: 20px 25px;
    border-radius: 16px;
    border: 1px solid var(--border);
    margin-bottom: 25px;
}

.bmi-label {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 3px;
    color: var(--text-muted);
}

.bmi-score-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

.bmi-score-display {
    font-size: 3.5rem;
    font-weight: 900;
    color: var(--text-main);
    font-family: 'Consolas', monospace;
    line-height: 1;
}

.bmi-status-badge {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.2);
    padding: 8px 18px;
    border-radius: 20px;
    font-weight: 800;
    text-transform: uppercase;
    font-size: 1rem;
    letter-spacing: 0.5px;
    transition: 0.3s;
}

/* Pro Meter Section */
.pro-meter-section {
    position: relative;
    margin: 40px 10px 10px 10px;
}

.meter-wrapper {
    position: relative;
    width: 100%;
}

.pro-pointer {
    position: absolute; 
    top: -24px; 
    width: 4px; 
    height: 38px;
    background: var(--text-main); 
    transition: left 0.5s cubic-bezier(0.22, 1, 0.36, 1);
    z-index: 20; 
    border-radius: 2px;
}

.pro-pointer::after {
    content: '\f0d7'; /* FontAwesome Dropdown arrow */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute; 
    top: -18px; 
    left: -6px;
    font-size: 16px; 
    color: var(--text-main);
}

.meter-scale-bar {
    height: 14px; 
    width: 100%; 
    background: var(--bg-input); 
    border-radius: 10px; 
    display: flex; 
    overflow: hidden; 
    border: 1px solid var(--border);
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.05);
}

/* 4 Equal blocks to map 15->18.5, 18.5->25, 25->30, 30->40 precisely */
.m-under { width: 25%; background: #3b82f6; } 
.m-normal { width: 25%; background: #10b981; } 
.m-over { width: 25%; background: #f59e0b; } 
.m-obese { width: 25%; background: #ef4444; }

/* Dynamic Threshold Labels */
.meter-thresholds {
    position: relative;
    height: 15px;
    margin-top: 5px;
    font-family: 'Consolas', monospace;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-muted);
}

.th-lbl { position: absolute; }
.th-lbl.start { left: 0%; transform: translateX(-50%); }
.th-lbl.n-th { left: 25%; transform: translateX(-50%); } /* Exactly BMI 18.5 */
.th-lbl.o-th { left: 50%; transform: translateX(-50%); } /* Exactly BMI 25 */
.th-lbl.ob-th { left: 75%; transform: translateX(-50%); } /* Exactly BMI 30 */
.th-lbl.end { left: 100%; transform: translateX(-50%); } /* BMI 40+ */

@media (max-width: 768px) {
    .bmi-input-grid {
        grid-template-columns: 1fr;
    }
    .bmi-select {
        width: 100%;
    }
    .bmi-score-display {
        font-size: 2.8rem;
    }
    .bmi-status-badge {
        font-size: 0.85rem;
        padding: 6px 14px;
    }
}
