@charset "UTF-8";

/*
    building-calculator-v1_0.css
    Estilos específicos da página "Calculadora de Materiais de Construção".
    Depende de principal-v2_1.css e dos componentes genéricos de tools-v1_1.css
    (reaproveita .result-grid, .result-card e .formulas-box de lá).
*/

/* ── Forma da estrutura ─────────────────────────────────────────────────── */
.shape-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 10px;
}

.shape-card {
    background: var(--color05);
    border: 2px solid transparent;
    border-radius: 8px;
    padding: 14px 8px;
    text-align: center;
    cursor: pointer;
}

.shape-card-icon {
    font-size: 1.5em;
    margin-bottom: 8px;
    line-height: 1;
}

.shape-card-name {
    font-size: 0.8em;
    font-weight: bold;
    color: white;
}

.shape-card:hover {
    border-color: var(--color01);
}

.shape-card.is-active {
    background: var(--color06);
    border-color: #3d5aa8;
}

.shape-card.is-active .shape-card-name {
    color: #7fb3ff;
}

/* ── Dimensões ──────────────────────────────────────────────────────────── */
.dim-input-row {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.dim-input-block {
    flex: 1;
    min-width: 140px;
    text-align: left;
}

.dim-input-block label {
    display: block;
    font-size: 0.85em;
    color: #cfd8dc;
    margin-bottom: 8px;
    font-weight: bold;
}

.dim-input-block input {
    background-color: var(--color06);
    color: white;
    border: 2px solid var(--color01);
    border-radius: 8px;
    font-family: monospace;
    font-size: 1.15em;
    font-weight: bold;
    height: 46px;
    padding: 0 14px;
}

.dim-input-block input:focus {
    border-color: var(--color02);
    box-shadow: 0 0 5px var(--color02);
    outline: none;
}

.fill-type-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.fill-type-row .pbuttoncopy {
    flex: 1;
    min-width: 130px;
}

/* ── Visualização ───────────────────────────────────────────────────────── */
.viz-box {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color06);
    border-radius: 8px;
    padding: 20px;
    min-height: 220px;
}

.viz-box svg {
    max-width: 100%;
    height: auto;
}

/* ── Tabela de formatos ─────────────────────────────────────────────────── */
.materials-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85em;
}

.materials-table th {
    text-align: left;
    font-size: 0.72em;
    color: var(--color04);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 8px 10px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.materials-table th:not(:first-child),
.materials-table td:not(:first-child) {
    text-align: right;
}

.materials-table td {
    padding: 10px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    color: white;
}

.materials-table td.is-numeric {
    font-family: monospace;
    color: #7fb3ff;
}

.materials-table td.is-equiv {
    color: var(--color04);
    font-size: 0.92em;
}

/* ── Responsivo ─────────────────────────────────────────────────────────── */
@media screen and (max-width: 700px) {
    .shape-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .fill-type-row .pbuttoncopy {
        min-width: 100%;
    }

    .materials-table {
        font-size: 0.75em;
    }

    .materials-table th,
    .materials-table td {
        padding: 6px;
    }
}