/* =========================================================
   CONVERSOR DE VOLUME
   Estilos exclusivos da ferramenta
   ========================================================= */

.volume-tool {
    max-width: 960px;
    margin: 0 auto;
}

.volume-card {
    padding: 28px;
    margin-bottom: 0;
}

.volume-card h2 {
    margin: 0 0 8px;
    color: #0f172a;
    font-size: 1.25rem;
}

.volume-description {
    margin: 0 0 26px;
    color: #64748b;
    line-height: 1.6;
}


/* =========================================================
   VALOR
   ========================================================= */

.volume-value-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 28px;
}

.volume-value-area label {
    width: min(100%, 400px);
    margin-bottom: 7px;
    color: #1e293b;
    font-size: .9rem;
    font-weight: 600;
}

.volume-value-area input {
    width: min(100%, 400px);
    height: 54px;
    box-sizing: border-box;
    padding: 10px 15px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #fff;
    color: #1e293b;
    font: inherit;
    font-size: 1.2rem;
    text-align: center;
    transition:
        border-color .2s ease,
        box-shadow .2s ease;
}

.volume-value-area input::placeholder {
    color: #94a3b8;
}

.volume-value-area input:focus,
.volume-unit-field select:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, .10);
}


/* =========================================================
   UNIDADES
   ========================================================= */

.volume-conversion-row {
    display: grid;
    grid-template-columns: 1fr 62px 1fr;
    gap: 14px;
    align-items: end;
    max-width: 820px;
    margin: 0 auto;
}

.volume-unit-field {
    display: flex;
    flex-direction: column;
}

.volume-unit-field label {
    margin-bottom: 7px;
    color: #1e293b;
    font-size: .9rem;
    font-weight: 600;
}

.volume-unit-field select {
    width: 100%;
    min-height: 46px;
    box-sizing: border-box;
    padding: 9px 11px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #fff;
    color: #1e293b;
    font: inherit;
    transition:
        border-color .2s ease,
        box-shadow .2s ease;
}

.volume-swap-area {
    display: flex;
    justify-content: center;
}

.volume-swap-button {
    width: 56px;
    height: 46px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #f8fafc;
    color: #1e293b;
    font-size: 1.25rem;
    cursor: pointer;
    transition:
        background .2s ease,
        border-color .2s ease,
        color .2s ease;
}

.volume-swap-button:hover {
    background: #eff6ff;
    border-color: #93c5fd;
    color: #2563eb;
}


/* =========================================================
   CONVERSÕES RÁPIDAS
   ========================================================= */

.volume-shortcuts {
    margin-top: 24px;
}

.volume-shortcuts-title {
    margin-bottom: 9px;
    color: #1e293b;
    font-size: .85rem;
    font-weight: 600;
}

.shortcut-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.shortcut-button {
    padding: 8px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 7px;
    background: #f8fafc;
    color: #334155;
    cursor: pointer;
    font: inherit;
    font-size: .82rem;
    transition:
        background .2s ease,
        border-color .2s ease,
        color .2s ease;
}

.shortcut-button:hover {
    background: #eff6ff;
    border-color: #93c5fd;
    color: #1d4ed8;
}


/* =========================================================
   AÇÕES
   ========================================================= */

.volume-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
}

.volume-button {
    min-height: 44px;
    padding: 9px 20px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #f8fafc;
    color: #334155;
    font: inherit;
    cursor: pointer;
    transition:
        background .2s ease,
        border-color .2s ease,
        color .2s ease;
}

.volume-button:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
}

.volume-button-primary {
    border-color: #2563eb;
    background: #2563eb;
    color: #fff;
}

.volume-button-primary:hover {
    border-color: #1d4ed8;
    background: #1d4ed8;
    color: #fff;
}


/* =========================================================
   RESULTADO
   ========================================================= */

.volume-result {
    display: none;
    margin-top: 30px;
}

.volume-result.visible {
    display: block;
}

.volume-result-box {
    padding: 28px;
    border: 1px solid #dbeafe;
    border-radius: 12px;
    background: #f8fbff;
    text-align: center;
}

.volume-result-title {
    margin-bottom: 10px;
    color: #64748b;
    font-size: .9rem;
}

.volume-result-value {
    color: #0f172a;
    font-size: 2.3rem;
    font-weight: 700;
    line-height: 1.25;
    word-break: break-word;
}

.volume-result-equation {
    margin-top: 12px;
    color: #475569;
    line-height: 1.5;
}

.volume-copy-status {
    min-height: 20px;
    margin-top: 10px;
    color: #64748b;
    font-size: .8rem;
}


/* =========================================================
   REFERÊNCIAS
   ========================================================= */

.volume-reference {
    margin-top: 28px;
}

.volume-reference h3 {
    margin: 0 0 14px;
    color: #0f172a;
    font-size: 1.05rem;
}

.reference-table-wrapper {
    overflow-x: auto;
}

.reference-table {
    width: 100%;
    border-collapse: collapse;
    font-size: .86rem;
}

.reference-table th,
.reference-table td {
    padding: 10px 11px;
    border: 1px solid #e2e8f0;
    text-align: left;
}

.reference-table th {
    background: #f8fafc;
    color: #1e293b;
    font-weight: 600;
}

.reference-table td {
    background: #fff;
    color: #475569;
}


/* =========================================================
   INFORMAÇÕES
   ========================================================= */

.volume-info {
    max-width: 960px;
    margin: 0 auto;
}

.volume-info-card {
    padding: 28px;
}

.volume-info-card h2 {
    margin-top: 0;
    color: #0f172a;
    font-size: 1.2rem;
}

.volume-info-card h3 {
    margin-top: 25px;
    color: #0f172a;
    font-size: 1rem;
}

.volume-info-card p {
    color: #475569;
    line-height: 1.65;
}


/* =========================================================
   RESPONSIVIDADE
   ========================================================= */

@media (max-width: 700px) {

    .volume-conversion-row {
        grid-template-columns: 1fr;
    }

    .volume-swap-area {
        align-items: center;
    }

    .volume-swap-button {
        width: 100%;
    }

}


@media (max-width: 480px) {

    .volume-card,
    .volume-info-card {
        padding: 20px;
    }

    .volume-actions {
        flex-direction: column;
    }

    .volume-button {
        width: 100%;
    }

    .volume-result-box {
        padding: 22px 18px;
    }

    .volume-result-value {
        font-size: 1.9rem;
    }

    .shortcut-buttons {
        gap: 6px;
    }

    .shortcut-button {
        flex: 1 1 calc(50% - 6px);
    }

}


/* =========================================================
   IMPRESSÃO
   ========================================================= */

@media print {

    header,
    footer,
    .tool-breadcrumb,
    .tool-header,
    .ad-container,
    .volume-actions,
    .volume-shortcuts {
        display: none !important;
    }

    .tool-page {
        padding: 0;
    }

    .volume-tool,
    .volume-info {
        max-width: 100%;
    }

    .volume-card,
    .volume-info-card {
        border: none;
        box-shadow: none;
    }

    .volume-result {
        display: block;
    }

    .volume-result-box {
        border: 1px solid #ccc;
        background: #fff;
    }

}