/* BMI Calculator - tool-specific styles (imports tools-common.css) */

.bmi-form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 25px;
    margin-bottom: 10px;
}

.input-group-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.input-group label {
    font-weight: 600;
    color: #374151;
    font-size: 0.9rem;
}

.unit-toggle {
    display: flex;
    background: var(--light-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
}

.unit-btn {
    border: none;
    background: transparent;
    padding: 6px 14px;
    font-size: 0.82rem;
    font-weight: 600;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.15s;
}

.unit-btn.active {
    background: var(--primary-color);
    color: white;
}

.unit-fields {
    display: flex;
    align-items: center;
    gap: 10px;
}

.unit-fields input {
    flex: 1;
    padding: 12px 14px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    min-width: 0;
}

.unit-fields input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.unit-suffix {
    color: #6b7280;
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
}

.bmi-result {
    margin-top: 30px;
    padding-top: 25px;
    border-top: 1px solid var(--border-color);
}

.bmi-result-top {
    text-align: center;
    margin-bottom: 25px;
}

.bmi-number {
    font-size: 3.2rem;
    font-weight: 800;
    color: var(--dark-bg);
    line-height: 1;
}

.bmi-category {
    display: inline-block;
    margin-top: 10px;
    padding: 6px 20px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 1rem;
}

.bmi-category.under { background: #dbeafe; color: #1d4ed8; }
.bmi-category.normal { background: #d1fae5; color: #047857; }
.bmi-category.over { background: #fef3c7; color: #b45309; }
.bmi-category.obese { background: #fee2e2; color: #b91c1c; }

.gauge-wrap {
    max-width: 640px;
    margin: 0 auto 25px;
}

.gauge-bar {
    position: relative;
    display: flex;
    height: 18px;
    border-radius: 10px;
    overflow: visible;
}

.gauge-segment {
    height: 100%;
    display: block;
}

.gauge-segment.under { width: 20%; background: #3b82f6; border-radius: 10px 0 0 10px; }
.gauge-segment.normal { width: 27%; background: #10b981; }
.gauge-segment.over { width: 22%; background: #f59e0b; }
.gauge-segment.obese { width: 31%; background: #ef4444; border-radius: 0 10px 10px 0; }

.gauge-marker {
    position: absolute;
    top: -8px;
    left: 0%;
    width: 4px;
    height: 34px;
    background: #1f2937;
    border-radius: 2px;
    transform: translateX(-2px);
    transition: left 0.3s ease;
    box-shadow: 0 0 0 2px white;
}

.gauge-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
    font-size: 0.75rem;
    color: #6b7280;
    text-align: center;
}

.gauge-labels span {
    flex: 1;
}

.disclaimer-box {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    background: #fffbeb;
    border: 1px solid #fed7aa;
    border-radius: 10px;
    padding: 16px 18px;
}

.disclaimer-box i {
    color: var(--warning-color);
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    margin-top: 2px;
}

.disclaimer-box p {
    font-size: 0.85rem;
    color: #78350f;
    line-height: 1.6;
}

@media (max-width: 480px) {
    .bmi-number { font-size: 2.4rem; }
    .gauge-labels { font-size: 0.68rem; }
}
