/**
 * ============================================================
 * shared/components/BMIPanel/BMIPanel.css - СТИЛИ ОВЕРЛЕЯ ИМТ
 * ============================================================
 */

.bmi-overlay {
    position: absolute;
    top: 20px;
    left: 20px;
    background: var(--surface);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 8px 16px;
    box-shadow: 0 4px 14px var(--shadow-color, rgba(17, 17, 17, 0.06));
    text-align: center;
    z-index: 3;
    pointer-events: none;
    /* Ширина рассчитана на самую длинную подпись («Выраженный дефицит»),
       поэтому бокс не меняет размер при смене категории */
    min-width: 176px;
}

.bmi-overlay-value {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-primary, #17181c);
    display: block;
    line-height: 1.2;
    /* Ширина под «00.0»: при смене цифр бокс не меняет размер */
    min-width: 3.6ch;
    text-align: center;
    font-variant-numeric: tabular-nums;
}

.bmi-overlay-label {
    font-size: 0.65rem;
    color: var(--text-tertiary, #9ca3af);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.bmi-category {
    font-size: 0.7rem;
    font-weight: 600;
    margin-top: 2px;
    display: block;
    white-space: nowrap;
}

/* Цвета категорий */
.bmi-category.normal {
    color: var(--mint-text, #4aa98b);
}

.bmi-category.underweight {
    color: var(--peach-text, #c98f45);
}

.bmi-category.overweight {
    color: var(--brand, #f78ba1);
}

.bmi-category.obese {
    color: var(--pink-text, #d4708a);
}

/* Адаптив */
@media (max-width: 600px) {
    .bmi-overlay {
        top: 12px;
        left: 12px;
        padding: 4px 12px;
        /* Ширина под самую длинную подпись — бокс не «дышит» */
        min-width: 132px;
        border-radius: 10px;
    }

    .bmi-overlay-value {
        font-size: 1.2rem;
    }

    .bmi-overlay-label {
        font-size: 0.55rem;
    }

    .bmi-category {
        font-size: 0.6rem;
    }
}

@media (max-height: 700px) and (max-width: 600px) {
    .bmi-overlay {
        top: 8px;
        left: 8px;
        padding: 2px 8px;
        min-width: 120px;
    }

    .bmi-overlay-value {
        font-size: 1rem;
    }

    .bmi-overlay-label {
        font-size: 0.5rem;
    }

    .bmi-category {
        font-size: 0.55rem;
    }
}