@charset "UTF-8";

/*
    crop-growth-calculator-v1_0.css
    Estilos específicos da página "Calculadora de Crescimento de Culturas".
    Depende de principal-v3_0.css e dos componentes genéricos de tools-v1_1.css
    (reaproveita .result-grid, .result-card e .formulas-box de lá).
*/

/* ── Cultura (grid) ─────────────────────────────────────────────────────── */
.crop-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
}

.crop-card {
    background: var(--color05);
    border: 2px solid transparent;
    border-radius: 8px;
    padding: 12px 8px;
    text-align: center;
    cursor: pointer;
}

.crop-card-icon {
    font-size: 1.5em;
    margin-bottom: 6px;
    line-height: 1;
}

.crop-card-name {
    font-size: 0.78em;
    font-weight: bold;
    color: white;
}

.crop-card-sub {
    font-size: 0.66em;
    color: var(--color04);
    margin-top: 2px;
}

.crop-card:hover {
    border-color: var(--color01);
}

.crop-card.is-active {
    background: var(--color06);
    border-color: #3d5aa8;
}

.crop-card.is-active .crop-card-name {
    color: #7fb3ff;
}

/* ── Condições de crescimento ───────────────────────────────────────────── */
.growth-config-row {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.growth-config-block {
    flex: 1;
    min-width: 200px;
    text-align: left;
}

.growth-config-block label {
    display: block;
    font-size: 0.85em;
    color: #cfd8dc;
    margin-bottom: 8px;
    font-weight: bold;
}

.growth-config-hint {
    font-size: 0.72em;
    color: var(--color04);
    margin-top: 6px;
}

.light-slider-row {
    display: flex;
    align-items: center;
    gap: 14px;
}

.light-slider-row input[type="range"] {
    flex: 1;
    height: 6px;
    border-radius: 3px;
    background: var(--color06);
    -webkit-appearance: none;
    appearance: none;
}

.light-slider-row input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--color01);
    cursor: pointer;
    border: 2px solid var(--color06);
}

.light-slider-value {
    font-family: monospace;
    font-weight: bold;
    color: var(--color02);
    width: 30px;
    text-align: right;
}

.growth-config-block input[type="number"] {
    background-color: var(--color06);
    color: white;
    border: 2px solid var(--color01);
    border-radius: 8px;
    font-family: monospace;
    font-size: 1.1em;
    font-weight: bold;
    height: 46px;
    padding: 0 14px;
    width: 100%;
    box-sizing: border-box;
}

/* ── Visualização do crescimento ────────────────────────────────────────── */
.growth-viz-box {
    background: #0e1a0e;
    border-radius: 8px;
    padding: 20px 16px 12px;
}

.growth-viz-row {
    display: flex;
    justify-content: space-between;
    gap: 4px;
}

.growth-viz-stage {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.growth-viz-plant {
    font-size: 1.1em;
    line-height: 1;
    transition: transform 0.15s ease;
}

.growth-viz-farmland {
    width: 100%;
    height: 8px;
    background: #6b4a2b;
    border-radius: 2px;
}

.growth-viz-stage.is-current .growth-viz-plant {
    transform: scale(1.3);
}

.growth-viz-stage.is-current {
    outline: 2px solid #3ac9a0;
    outline-offset: 3px;
    border-radius: 4px;
}

.growth-viz-stage-num {
    font-size: 0.6em;
    color: #3ac9a0;
}

.growth-viz-status {
    display: flex;
    justify-content: space-between;
    font-size: 0.75em;
    color: var(--color04);
    margin-top: 10px;
}

.growth-stage-slider-row {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 14px;
}

.growth-stage-slider-row label {
    font-size: 0.85em;
    color: #cfd8dc;
    font-weight: bold;
    flex-shrink: 0;
}

.growth-stage-slider-row input[type="range"] {
    flex: 1;
    height: 6px;
    border-radius: 3px;
    background: var(--color06);
    -webkit-appearance: none;
    appearance: none;
}

.growth-stage-slider-row input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #3ac9a0;
    cursor: pointer;
    border: 2px solid var(--color06);
}

.growth-stage-slider-value {
    font-family: monospace;
    font-weight: bold;
    color: #3ac9a0;
    width: 20px;
    text-align: right;
}

/* ── Cards de resultado / condições atuais ──────────────────────────────── */
.result-card-icon-row {
    font-size: 1.1em;
    margin-bottom: 6px;
    display: block;
}

.condition-status-card {
    background: var(--color05);
    border-radius: 8px;
    padding: 12px 14px;
    text-align: left;
}

.condition-status-label {
    font-size: 0.7em;
    letter-spacing: 0.06em;
    color: var(--color04);
    text-transform: uppercase;
    margin-bottom: 6px;
}

.condition-status-value {
    font-family: monospace;
    font-size: 1.15em;
    font-weight: bold;
    color: white;
}

.condition-status-sub {
    font-size: 0.75em;
    margin-top: 4px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.condition-status-sub.is-ok { color: #7cd982; }
.condition-status-sub.is-fail { color: #ff8080; }
.condition-status-sub.is-warn { color: var(--color01); }

/* ── Bonemeal ───────────────────────────────────────────────────────────── */
.bonemeal-slider-row {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
}

.bonemeal-slider-row input[type="range"] {
    flex: 1;
    height: 6px;
    border-radius: 3px;
    background: var(--color06);
    -webkit-appearance: none;
    appearance: none;
}

.bonemeal-slider-row input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--color01);
    cursor: pointer;
    border: 2px solid var(--color06);
}

.bonemeal-disabled-note {
    text-align: center;
    color: var(--color04);
    font-size: 0.85em;
    padding: 10px 0;
}

/* ── Tabela de culturas ─────────────────────────────────────────────────── */
.crop-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85em;
}

.crop-table th {
    text-align: left;
    font-size: 0.7em;
    color: var(--color04);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 8px 10px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.crop-table th:not(:first-child),
.crop-table td:not(:first-child) {
    text-align: center;
}

.crop-table td:last-child,
.crop-table th:last-child {
    text-align: left;
}

.crop-table td {
    padding: 9px 10px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    color: white;
}

.crop-table td.is-numeric {
    font-family: monospace;
    color: #7fb3ff;
}

.crop-table-name {
    display: flex;
    align-items: center;
    gap: 8px;
    text-align: left;
}

.crop-table tr.is-active-row {
    background: rgba(61, 90, 168, 0.15);
}

/* ── Responsivo ─────────────────────────────────────────────────────────── */
@media screen and (max-width: 700px) {
    .crop-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .crop-table {
        font-size: 0.72em;
    }

    .crop-table th,
    .crop-table td {
        padding: 6px;
    }

    .growth-viz-stage-num {
        display: none;
    }
}