/* =========================
   TOOL CONTAINER
========================= */

.scpav-toolbox {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-areas: "tool-input tool-output";
    gap: 1rem;

    background: var(--gray-50);
    box-shadow: var(--shadow-tool);
}

@media (max-width: 900px) {
    .scpav-toolbox {
        grid-template-columns: 1fr;
        grid-template-areas:
            "tool-input"
            "tool-output";
    }
}

/* =========================
   PANELS
========================= */

.tool-panel1 {
    grid-area: tool-input;
    background: #f5f6fa;
}

.tool-panel2 {
    grid-area: tool-output;
}

/* =========================
   TABS
========================= */

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.tool-tabs ul {
    display: flex;

    background: var(--gray-50);
    border-bottom: 1px solid #bbb;
}

.tool-tabs ul li {
    list-style: none;

    padding: 8px 14px;

    background: #c6d4e4;

    cursor: pointer;

    border-right: 1px solid #bbb;

    transition: 0.2s;
}

.tool-tabs ul li:last-child {
    border-left: none;
}

.tool-tabs ul li:hover {
    background: #e3ecf6;
}

.tool-tabs ul li.active {
    background: #f5f6fa;

    border-bottom: 1px solid #f5f6fa;

    margin-bottom: -1px;

    font-weight: 600;
}

/* =========================
   FORM
========================= */

.table1 {
    width: 100%;
    border-collapse: separate;
}

.section td {
    padding-top: 10px;
    padding-bottom: 2px;

    font-weight: 600;
}

input[type="number"] {
    height: 2rem;
    margin: auto;
}

.tool-actions {
    margin-bottom: 1rem;
}

.calculateBtn,
.clearBtn {
    padding-inline: 1.5rem;
}

/* =========================
   MESSAGE
========================= */

.message {
    display: none;
}

.message.show {
    display: table-row;

    color: #e74c3c;
    font-size: 13px;
}

.message.info {
    color: #f39c12;
}

/* =========================
   RESULT TEXT
========================= */

.result-value {
    font-size: 20px;
    font-weight: 600;
    color: #1b5a6f;
}

.res-label {
    font-weight: 500;
}

.res-value {
    text-align: right;
    font-weight: 600;
}

/* =========================
   SCALE WRAPPER
========================= */

.bmi-scale-wrapper {
    position: relative;

    width: 95%;

    margin-inline: auto;
    margin-top: 20px;

    padding-bottom: 40px;
}

/* =========================
   SCALE MARKS
========================= */

.bmi-marks {
    position: relative;

    height: 16px;

    margin-bottom: 6px;

    font-size: 14px;
}

.bmi-marks span {
    position: absolute;

    transform: translateX(-50%);
}

/* =========================
   SCALE
========================= */

.bmi-scale {
    display: flex;

    height: 20px;

    overflow: hidden;

    gap: 1px;
}

.scale-seg {
    flex: 1;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 10px;
    color: #fff;
}

/* =========================
   SCALE COLORS
========================= */

.scale-under {
    background: #9aa0a6;
}

.scale-healthy {
    background: #4e7f00;
}

.scale-overweight {
    background: #1b5a6f;
}

.scale-obese {
    background: #6b2f74;
}

/* =========================
   POINTER
========================= */

.bmi-pointer-wrap {
    position: absolute;

    top: 45px;
    left: 0%;

    transform: translateX(-50%);

    transition: left 0.4s ease;

    text-align: center;
}

.bmi-pointer {
    position: relative;
    width: 0;
    height: 0;

    margin: auto;

    border-left: 7px solid transparent;
    border-right: 7px solid transparent;

    border-bottom: 14px solid rgb(35, 35, 35);
}

.bmi-pointer::before {
    content: "";

    position: absolute;

    bottom: -1px;
    left: 50%;

    transform: translateX(-50%);

    width: 1px;
    height: 30px;

    background: rgb(35, 35, 35);
}

.bmi-pointer-label {
    margin-top: 4px;

    font-size: 14px;
    font-weight: 600;
}

/* =========================
   TABLE
========================= */

.bmi-table {
    width: 100%;

    margin-top: 15px;

    background: #fff;

    border-collapse: collapse;
}

.bmi-table th,
.bmi-table td {
    border: 1px solid #ccc;

    padding: 6px;

    font-size: 14px;
}

.bmi-table th {
    background: #f1f1f1;
}

/* =========================
   ACTIVE ROW
========================= */

.bmi-row.active {
    border: 2px solid #000;

    font-weight: 600;

    transition: 0.3s;
}

.bmi-row.under.active {
    background: #e0e0e0;
}

.bmi-row.healthy.active {
    background: #e6f4d7;
}

.bmi-row.overweight.active {
    background: #d9edf7;
}

.bmi-row.obese.active {
    background: #f4d7f7;
}

/* =========================
   SMALL TEXT
========================= */

.unit,
.nounit {
    margin-left: 4px;
    font-size: 12px;
    color: #0a0a0a;
}

.nounit {
    font-style: italic;
}