/* assets/css/diluicao-solucoes.css */
/* CALCULADORA DE DILUIÇÃO DE SOLUÇÕES - CLASSES ESPECÍFICAS ISOLADAS */

/* ===================================
   CONTAINER PRINCIPAL DA CALCULADORA
   ================================== */
.diluicao-calculator-section {
    margin-bottom: 2rem;
}

.diluicao-header {
    text-align: center;
    margin-bottom: 2rem;
    padding: 2rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

.diluicao-header h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.diluicao-header p {
    font-size: 1.2rem;
    opacity: 0.95;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ===================================
   CONTAINER DE INPUTS
   ================================== */
.diluicao-container {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.diluicao-inputs h3 {
    color: #2c3e50;
    margin-bottom: 1.5rem;
    font-size: 1.4rem;
    border-bottom: 2px solid #667eea;
    padding-bottom: 0.5rem;
}

/* ===================================
   DADOS BÁSICOS DA DILUIÇÃO
   ================================== */
.diluicao-dados-basicos {
    margin-bottom: 2rem;
}

.diluicao-input-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.diluicao-input-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.diluicao-input-group.full-width {
    grid-column: span 2;
    max-width: 400px;
    justify-self: center;
}

.diluicao-input-group label {
    font-weight: 600;
    color: #2c3e50;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* ===================================
   INPUTS DE NÚMEROS E SELETORES
   ================================== */
.diluicao-number-input {
    display: flex;
    border: 2px solid #e0e6ed;
    border-radius: 10px;
    overflow: hidden;
    background: white;
    transition: all 0.3s ease;
}

.diluicao-number-input:focus-within {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    transform: translateY(-1px);
}

.diluicao-number-input input {
    flex: 2;
    padding: 0.8rem;
    border: none;
    font-size: 1rem;
    background: transparent;
    outline: none;
}

.diluicao-number-input select {
    flex: 1;
    padding: 0.8rem;
    border: none;
    border-left: 1px solid #e0e6ed;
    background: #f8f9fa;
    font-size: 0.9rem;
    outline: none;
    cursor: pointer;
}

.diluicao-select-what {
    padding: 0.8rem;
    border: 2px solid #e0e6ed;
    border-radius: 10px;
    font-size: 1rem;
    background: white;
    outline: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.diluicao-select-what:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* ===================================
   BOTÃO CALCULAR
   ================================== */
.diluicao-calculate-section {
    text-align: center;
    margin: 2rem 0;
}

.diluicao-calculate-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
    min-width: 250px;
}

.diluicao-calculate-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.diluicao-calculate-btn:active {
    transform: translateY(0);
}

/* ===================================
   ÁREA DE RESULTADO
   ================================== */
.diluicao-resultado {
    background: linear-gradient(135deg, #f8f9ff 0%, #e8f2ff 100%);
    border: 2px solid #667eea;
    border-radius: 15px;
    padding: 2rem;
    margin: 2rem 0;
    animation: slideIn 0.5s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.diluicao-resultado h3 {
    color: #667eea;
    margin-bottom: 1.5rem;
    text-align: center;
    font-size: 1.3rem;
}

.diluicao-resultado-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 1.5rem;
}

/* ===================================
   RESULTADO PRINCIPAL
   ================================== */
.diluicao-resultado-principal {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.diluicao-resultado-principal h4 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.diluicao-valor-principal {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.diluicao-value {
    font-size: 2rem;
    font-weight: bold;
    color: #667eea;
}

.diluicao-unit {
    font-size: 1.2rem;
    color: #5a6c7d;
    font-weight: 600;
}

.diluicao-formula {
    color: #5a6c7d;
    font-style: italic;
}

/* ===================================
   DETALHAMENTO DOS VALORES
   ================================== */
.diluicao-detalhamento {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.diluicao-detalhamento h4 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.diluicao-item-grid {
    display: grid;
    gap: 0.5rem;
}

.diluicao-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem;
    background: #f8f9fa;
    border-radius: 5px;
    font-size: 0.9rem;
}

.diluicao-item-label {
    color: #2c3e50;
    font-weight: 500;
}

.diluicao-item-value {
    color: #667eea;
    font-weight: 600;
}

/* ===================================
   BOTÕES DE AÇÃO
   ================================== */
.diluicao-clear-btn {
    background: #f8f9fa;
    color: #667eea;
    border: 2px solid #667eea;
    padding: 0.8rem 1.5rem;
    font-weight: 600;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 0.5rem;
}

.diluicao-clear-btn:hover {
    background: #667eea;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.2);
}

/* ===================================
   EXPLICAÇÃO DETALHADA
   ================================== */
.diluicao-detailed-explanation {
    background: white;
    border: 2px solid #e0e6ed;
    border-radius: 15px;
    padding: 2rem;
    margin: 1.5rem 0;
    animation: slideIn 0.5s ease-out;
}

.diluicao-detailed-explanation h4 {
    color: #667eea;
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.diluicao-calculation-steps {
    display: grid;
    gap: 1rem;
}

.diluicao-step {
    padding: 1rem;
    background: #f8f9ff;
    border-left: 4px solid #667eea;
    border-radius: 5px;
}

.diluicao-step h4 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.diluicao-step p {
    color: #5a6c7d;
    margin: 0;
    line-height: 1.5;
}

/* ===================================
   EXEMPLOS RÁPIDOS
   ================================== */
.diluicao-examples-section {
    margin: 2rem 0;
    padding: 2rem;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.diluicao-examples-section h3 {
    color: #2c3e50;
    margin-bottom: 1.5rem;
    text-align: center;
    font-size: 1.3rem;
}

.diluicao-examples-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.diluicao-example-btn {
    background: linear-gradient(135deg, #f8f9ff 0%, #e8f2ff 100%);
    color: #667eea;
    border: 2px solid #e0e6ed;
    padding: 1rem;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    text-align: center;
}

.diluicao-example-btn:hover {
    border-color: #667eea;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.2);
}

/* ===================================
   CONTEÚDO EDUCACIONAL
   ================================== */
.educational-content {
    margin-top: 3rem;
}

.educational-content h2 {
    color: #2c3e50;
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2rem;
    border-bottom: 3px solid #667eea;
    padding-bottom: 1rem;
}

.content-block {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e0e6ed;
}

.content-block h3 {
    color: #667eea;
    margin-bottom: 1rem;
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.content-block h4 {
    color: #2c3e50;
    margin: 1rem 0 0.5rem 0;
    font-size: 1.1rem;
}

.content-block p {
    color: #5a6c7d;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.content-block ul {
    color: #5a6c7d;
    line-height: 1.6;
    padding-left: 1.5rem;
}

.content-block li {
    margin-bottom: 0.5rem;
}

/* ===================================
   FÓRMULAS E DESTAQUES
   ================================== */
.formula-highlight {
    background: linear-gradient(135deg, #f8f9ff 0%, #e8f2ff 100%);
    border: 2px solid #667eea;
    border-radius: 10px;
    padding: 1.5rem;
    text-align: center;
    margin: 1.5rem 0;
}

.formula-main {
    font-size: 1.5rem;
    font-weight: bold;
    color: #667eea;
    font-family: 'Courier New', monospace;
}

.formulas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin: 1rem 0;
}

.formula-item {
    background: #f8f9ff;
    border: 1px solid #e0e6ed;
    border-radius: 10px;
    padding: 1rem;
    text-align: center;
}

.formula-item h4 {
    color: #667eea;
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.formula {
    font-family: 'Courier New', monospace;
    font-size: 1.1rem;
    font-weight: bold;
    color: #2c3e50;
    background: white;
    padding: 0.5rem;
    border-radius: 5px;
    margin: 0;
}

/* ===================================
   EXEMPLOS PRÁTICOS
   ================================== */
.example-item {
    background: #f8f9ff;
    border-left: 4px solid #667eea;
    border-radius: 0 10px 10px 0;
    padding: 1.5rem;
    margin: 1rem 0;
}

.example-calculation {
    background: white;
    border-radius: 8px;
    padding: 1rem;
    margin-top: 1rem;
    border: 1px solid #e0e6ed;
}

.example-calculation p {
    margin: 0.3rem 0;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
}

/* ===================================
   DICAS E LISTAS
   ================================== */
.tips-list {
    list-style: none;
    padding: 0;
}

.tips-list li {
    background: #f8f9ff;
    border-left: 4px solid #667eea;
    border-radius: 0 8px 8px 0;
    padding: 0.8rem;
    margin: 0.5rem 0;
    transition: all 0.3s ease;
}

.tips-list li:hover {
    transform: translateX(5px);
    box-shadow: 0 3px 10px rgba(102, 126, 234, 0.1);
}

/* ===================================
   TIPOS DE CONCENTRAÇÃO
   ================================== */
.concentration-types {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin: 1rem 0;
}

.concentration-item {
    background: #f8f9ff;
    border: 1px solid #e0e6ed;
    border-radius: 10px;
    padding: 1.5rem;
    text-align: center;
}

.concentration-item h4 {
    color: #667eea;
    margin-bottom: 0.5rem;
}

.concentration-item p {
    margin: 0.5rem 0;
}

/* ===================================
   APLICAÇÕES
   ================================== */
.applications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin: 1rem 0;
}

.application-item {
    background: linear-gradient(135deg, #f8f9ff 0%, #e8f2ff 100%);
    border: 1px solid #e0e6ed;
    border-radius: 10px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
}

.application-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.15);
}

.application-item h4 {
    color: #667eea;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

/* ===================================
   FUNDAMENTAÇÃO TEÓRICA
   ================================== */
.theory-highlight {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 10px;
    padding: 1.5rem;
    margin: 1.5rem 0;
    text-align: center;
}

.theory-highlight p {
    margin: 0.5rem 0;
    color: white;
}

/* ===================================
   AVISO LEGAL (APÓS RESULTADO)
   ================================== */
.diluicao-legal-disclaimer {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    border: 2px solid #ffc107;
    border-radius: 10px;
    padding: 1.5rem;
    margin: 1.5rem 0;
    animation: slideIn 0.5s ease-out;
}

.diluicao-legal-disclaimer h4 {
    color: #856404;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.diluicao-legal-disclaimer p {
    color: #856404;
    font-weight: 500;
    margin: 0;
    line-height: 1.5;
    text-align: center;
}

/* ===================================
   REFERÊNCIAS E AVISO LEGAL
   ================================== */
.references-list {
    list-style: none;
    padding: 0;
}

.references-list li {
    background: #f8f9fa;
    border-left: 3px solid #667eea;
    border-radius: 0 5px 5px 0;
    padding: 0.8rem;
    margin: 0.5rem 0;
    font-size: 0.9rem;
}

/* ===================================
   ESTADOS DE ERRO/VALIDAÇÃO
   ================================== */
.diluicao-input-error {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1) !important;
}

.diluicao-error-message {
    color: #dc3545;
    font-size: 0.85rem;
    margin-top: 0.3rem;
    font-weight: 500;
}

/* ===================================
   RESPONSIVIDADE
   ================================== */
@media (max-width: 768px) {
    .diluicao-header h1 {
        font-size: 2rem;
    }
    
    .diluicao-header p {
        font-size: 1rem;
    }
    
    .diluicao-input-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .diluicao-input-group.full-width {
        grid-column: span 1;
    }
    
    .diluicao-resultado-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .diluicao-examples-grid {
        grid-template-columns: 1fr;
    }
    
    .formulas-grid {
        grid-template-columns: 1fr;
    }
    
    .concentration-types {
        grid-template-columns: 1fr;
    }
    
    .applications-grid {
        grid-template-columns: 1fr;
    }
    
    .diluicao-container {
        padding: 1rem;
    }
    
    .content-block {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .diluicao-header {
        padding: 1.5rem;
    }
    
    .diluicao-header h1 {
        font-size: 1.8rem;
    }
    
    .diluicao-value {
        font-size: 1.5rem;
    }
    
    .diluicao-calculate-btn {
        padding: 0.8rem 1.5rem;
        min-width: 200px;
        font-size: 1rem;
    }
}

/* ===================================
   ANIMAÇÕES E TRANSIÇÕES
   ================================== */
.diluicao-container,
.content-block,
.diluicao-examples-section {
    transition: all 0.3s ease;
}

.diluicao-container:hover,
.content-block:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

/* Classe para esconder elementos */
.hidden {
    display: none !important;
}