/* Reset/Normalize (Opcional - pode usar um link CDN ou colar o conteúdo aqui) */
/* Exemplo básico de reset: */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    background-color: #f8f9fa; /* Creme/Bege Suave */
    color: #333;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.adsense-block {
    background-color: #e9ecef; /* Cor de placeholder para anúncios */
    text-align: center;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px dashed #ced4da;
    min-height: 50px; /* Para evitar CLS */
}

.adsense-top, .adsense-footer {
    width: 100%;
}

.container {
    max-width: 1200px;
    margin: 20px auto;
    padding: 0 15px;
    display: flex;
    gap: 20px;
    flex-grow: 1; /* Faz o container crescer para preencher o espaço vertical */
}

.sidebar {
    flex-basis: 250px;
    min-width: 200px;
    background-color: #ffffff; /* Branco Off-white */
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    align-self: flex-start; /* Alinha a sidebar no topo do flex container */
}

.sidebar h2 {
    color: #495057; /* Terracota */
    margin-bottom: 10px;
    font-size: 1.4em;
}

.sidebar ul {
    list-style: none;
    padding: 0;
    max-height: 300px; /* Altura máxima para a lista de receitas */
    overflow-y: auto; /* Scroll se muitas receitas */
}

.sidebar ul li {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sidebar ul li:last-child {
    border-bottom: none;
}

.sidebar ul li:hover {
    background-color: #f1f1f1;
}

.sidebar .btn-excluir-receita {
    background-color: #dc3545;
    color: white;
    border: none;
    padding: 3px 6px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.8em;
}

.main-content {
    flex-grow: 1;
    background-color: #ffffff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

header {
    text-align: center;
    margin-bottom: 30px;
}

header h1 {
    color: #28a745; /* Verde-menta */
    margin-bottom: 5px;
}

section {
    margin-bottom: 30px;
    padding: 15px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background-color: #fdfdfd;
}

section h2 {
    color: #007bff; /* Azul-céu */
    margin-bottom: 15px;
    border-bottom: 2px solid #007bff;
    padding-bottom: 5px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    color: #495057;
    font-weight: bold;
}

/* Novos estilos para formulários em linha */
.form-inline-container {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 15px;
    align-items: flex-end;
}

.form-inline-container .form-group {
    flex: 1;
    min-width: 200px;
}

/* Estilos para linhas de formulário */
.form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 15px;
    align-items: flex-end;
}

.form-row .form-group {
    flex: 1;
    min-width: 150px;
}

.form-action {
    display: flex;
    align-items: flex-end;
    margin-bottom: 15px;
}

/* Estilos para o formulário de ingredientes */
#form-ingrediente {
    background-color: #f9f9f9;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid #e0e0e0;
}

/* Estilos para a lista de ingredientes cadastrados */
.ingredientes-cadastrados {
    margin-top: 20px;
}

.ingredientes-cadastrados h3 {
    color: #495057;
    margin-bottom: 10px;
    font-size: 1.1em;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 5px;
}

.lista-ingredientes {
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 10px;
}

.lista-vazia {
    color: #6c757d;
    font-style: italic;
    text-align: center;
    padding: 20px 0;
}

.ingrediente-listado {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    border-bottom: 1px solid #eee;
    background-color: #fff;
}

.ingrediente-listado:hover {
    background-color: #f8f9fa;
}

.ingrediente-listado:last-child {
    border-bottom: none;
}

.ingrediente-info {
    flex: 1;
}

.ingrediente-nome {
    font-weight: bold;
    color: #212529;
}

.ingrediente-detalhes {
    color: #6c757d;
    font-size: 0.9em;
    margin-top: 3px;
}

.ingrediente-acoes {
    display: flex;
    gap: 5px;
}

.btn-acao-ingrediente {
    padding: 5px 10px;
    font-size: 0.85em;
}

.btn-editar {
    background-color: #17a2b8;
}

.btn-editar:hover {
    background-color: #138496;
}

.btn-excluir {
    background-color: #dc3545;
}

.btn-excluir:hover {
    background-color: #c82333;
}

.btn-action {
    background-color: #007bff;
    padding: 10px 15px;
}

.btn-action:hover {
    background-color: #0069d9;
}

input[type="text"],
input[type="number"],
select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ced4da; /* Cinza claro */
    border-radius: 4px;
    font-size: 1em;
}

input[type="number"] {
    appearance: textfield; /* Propriedade padrão */
    -moz-appearance: textfield; /* Para Firefox */
}

input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    -webkit-appearance: none; /* Para Chrome, Safari, Edge, Opera */
    margin: 0;
}

fieldset {
    border: 1px solid #ced4da;
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 4px;
}

legend {
    padding: 0 10px;
    font-weight: bold;
    color: #495057;
}

.ingrediente-item {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); /* Responsivo */
    gap: 10px;
    align-items: center;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px dashed #eee;
}

.ingrediente-item:last-child {
    border-bottom: none;
}

.ingrediente-item input {
    min-width: 80px; /* Garante que os inputs não fiquem muito pequenos */
}

button, .btn {
    background-color: #28a745; /* Verde-menta */
    color: white;
    padding: 10px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1em;
    transition: background-color 0.3s ease;
}

button:hover, .btn:hover {
    background-color: #218838; /* Verde mais escuro */
}

#adicionar-ingrediente {
    background-color: #007bff; /* Azul */
    margin-top: 10px;
}
#adicionar-ingrediente:hover {
    background-color: #0056b3;
}

.remover-ingrediente {
    background-color: #dc3545; /* Vermelho */
    padding: 8px 10px;
    font-size: 0.9em;
    width: auto; /* Ajusta ao conteúdo */
    justify-self: end; /* Alinha o botão de remover à direita na grid */
}
.remover-ingrediente:hover {
    background-color: #c82333;
}

.buttons-container {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.buttons-container button {
    flex: 1;
    padding: 12px;
}

#btn-calcular {
    flex: 2;
    font-size: 1.2em;
}

#btn-salvar-receita {
    background-color: #ffc107; /* Amarelo-manteiga */
    color: #333;
}
#btn-salvar-receita:hover {
    background-color: #e0a800;
}
#btn-salvar-receita:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

#resultados-sugestoes p {
    font-size: 1.1em;
    margin-bottom: 8px;
}
#resultados-sugestoes strong {
    color: #28a745;
}

#ajuste-otimizacao input[type="range"] {
    flex: 1;
    transition: all 0.3s ease;
    height: 6px;
}

#ajuste-otimizacao .form-group label {
    display: inline-block; /* Para alinhar com o slider */
}

#feedback-ajuste p {
    margin-top: 10px;
    padding: 10px;
    background-color: #e9f7ef;
    border-left: 3px solid #28a745;
}

#feedback-ajuste ul {
    list-style-type: none;
    padding-left: 10px;
    margin-top: 10px;
}

#feedback-ajuste ul li {
    margin-bottom: 5px;
}

#feedback-ajuste ul li ul {
    margin-top: 5px;
    margin-bottom: 5px;
    padding-left: 15px;
    border-left: 2px solid #e9ecef;
}

#feedback-ajuste ul li ul li {
    font-size: 0.95em;
    margin-bottom: 3px;
}

#feedback-ajuste h3 {
    color: #007bff;
    font-size: 1.1em;
    margin-top: 20px;
    margin-bottom: 10px;
}

.highlight-high {
    color: #28a745;  /* Verde para valores altos/positivos */
    font-weight: bold;
    transition: color 0.3s;
}

.highlight-low {
    color: #007bff;  /* Azul para valores baixos/moderados */
    font-weight: bold;
    transition: color 0.3s;
}

.highlight-ingredient {
    color: #6f42c1;  /* Roxo/violeta para os ingredientes */
    font-weight: bold;
    transition: color 0.3s;
}

.highlight-warning {
    color: #e0a800;  /* Amarelo para avisos */
    font-weight: bold;
    transition: color 0.3s;
}

.resultado-item.destaque .highlight-high,
.resultado-item.destaque .highlight-low {
    font-size: 1.05em;
    font-weight: 700;
}

.slider-row {
    display: flex;
    align-items: center;
    margin-top: 5px;
}

.slider-group {
    background-color: #f8f9fa;
    padding: 10px 12px;
    border-radius: 8px;
    margin-bottom: 8px;
    border-left: 4px solid #6f42c1;
    transition: all 0.3s ease;
}

.slider-label-left, .slider-label-right {
    color: #6c757d;
    font-size: 0.8em;
    white-space: nowrap;
}

.slider-label-left {
    margin-right: 10px;
}

.slider-label-right {
    margin-left: 10px;
}

.slider-group:nth-child(2) {
    border-left-color: #28a745;
}

.slider-group:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.slider-ativo {
    box-shadow: 0 0 10px rgba(111, 66, 193, 0.6);
    transition: all 0.3s ease;
}

.slider-group:nth-child(2).slider-ativo {
    box-shadow: 0 0 10px rgba(40, 167, 69, 0.6);
}

.slider-help-text {
    font-size: 0.85em;
    color: #6c757d;
    margin-top: 8px;
    font-style: italic;
}

.ajuste-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
    flex-wrap: wrap;
    border-bottom: 1px solid #dee2e6;
    padding-bottom: 8px;
}

.ajuste-header h2 {
    margin-bottom: 0;
    margin-right: 15px;
    font-size: 1.3em;
}

.ajuste-instrucoes {
    color: #495057;
    font-size: 0.9em;
    margin: 0;
    font-style: italic;
}

footer {
    text-align: center;
    padding: 20px;
    background-color: #343a40; /* Cinza escuro */
    color: #f8f9fa;
    margin-top: auto; /* Empurra o rodapé para baixo */
}

/* Novos estilos para a área de resultados */
.resultados-principais {
    background-color: #f8f9fa;
    background-image: linear-gradient(to right bottom, #f8f9fa, #f1f3f5);
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 10px;
    border-top: 3px solid #28a745;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.resultados-principais:hover {
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}

.resultados-principais h3 {
    color: #28a745;
    margin-bottom: 20px;
    font-size: 1.3em;
    text-align: center;
    position: relative;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.resultados-principais h3::after {
    content: '';
    display: block;
    width: 100px;
    height: 3px;
    background-image: linear-gradient(to right, rgba(40, 167, 69, 0.8), rgba(40, 167, 69, 0.2));
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 3px;
}

.resultado-alerta {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 15px;
    padding: 12px 15px;
    background-color: rgba(255, 193, 7, 0.12);
    border-radius: 6px;
    text-align: center;
    border: 1px solid rgba(224, 168, 0, 0.3);
    font-size: 0.9em;
    animation: pulse-warning 2s infinite;
}

.alerta-icon {
    font-size: 1.3em;
    margin-right: 10px;
}

.alerta-text {
    color: #856404;
}

.alerta-text strong {
    color: #e0a800;
    font-weight: 700;
}

@keyframes pulse-warning {
    0% {
        box-shadow: 0 0 0 0 rgba(224, 168, 0, 0.4);
    }
    70% {
        box-shadow: 0 0 0 6px rgba(224, 168, 0, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(224, 168, 0, 0);
    }
}

/* Estilos para a nova apresentação de resultados */
.btn-detalhes {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    color: #495057;
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
    width: 100%;
    text-align: center;
    margin-bottom: 8px;
    display: block;
    position: relative;
    transition: all 0.2s ease;
    font-size: 0.9em;
}

.btn-detalhes:hover {
    background-color: #e9ecef;
    border-color: #ced4da;
    color: #212529;
}

.btn-detalhes::after {
    content: '▼';
    font-size: 0.7em;
    margin-left: 8px;
    transition: transform 0.3s ease;
}

.btn-detalhes.ativo::after {
    transform: rotate(180deg);
}

.texto-recolher {
    display: none;
}

.btn-detalhes.ativo .texto-expandir {
    display: none;
}

.btn-detalhes.ativo .texto-recolher {
    display: inline;
}

.detalhes-simulacao {
    display: block;
    background-color: #f8f9fa;
    padding: 0;
    border-radius: 8px;
    margin-bottom: 0;
    border: 1px solid #dee2e6;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: all 0.4s ease-in-out;
}

.detalhes-simulacao.ativo {
    padding: 15px;
    max-height: 800px;
    margin-bottom: 15px;
    opacity: 1;
}

.detalhe-grupo {
    margin-bottom: 15px;
}

.detalhe-grupo:last-child {
    margin-bottom: 0;
}

.detalhe-grupo h4 {
    font-size: 1em;
    color: #495057;
    margin-bottom: 8px;
    font-weight: 600;
    border-bottom: 1px solid #dee2e6;
    padding-bottom: 5px;
}

.detalhe-grupo ul {
    list-style-type: none;
    padding-left: 0;
    margin: 0;
}

.detalhe-grupo ul li {
    margin-bottom: 5px;
    font-size: 0.95em;
}

/* Estilos para a seção Como Funciona */
#como-funciona h3 {
    color: #007bff;
    margin-top: 20px;
    margin-bottom: 10px;
    font-size: 1.1em;
}

#como-funciona ul {
    padding-left: 20px;
    margin-bottom: 15px;
}

#como-funciona li {
    margin-bottom: 6px;
    line-height: 1.5;
}

#como-funciona em {
    color: #28a745;
    font-weight: bold;
}

/* Estilos para a nova visualização de resultados */
.valores-principais-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 25px;
    padding: 15px 0;
}

.valores-financeiros-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 15px;
    padding-top: 15px;
    border-top: 1px dashed rgba(0,0,0,0.1);
}

.valor-card {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
    padding: 15px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.valor-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.valor-icon {
    font-size: 1.5em;
    margin-bottom: 5px;
    opacity: 0.8;
}

.valor-label {
    font-size: 0.9em;
    color: #555;
    margin-bottom: 5px;
    font-weight: 500;
}

.valor-amount {
    font-size: 1.8em;
    font-weight: 700;
    margin-bottom: 5px;
    font-family: 'Arial', sans-serif;
}

.valor-description {
    font-size: 0.8em;
    color: #777;
    font-style: italic;
}

.valor-calc {
    font-size: 0.8em;
    color: #777;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px dotted #eee;
}

/* Cores específicas para cada tipo de card */
.valor-card.custo .valor-amount {
    color: #007bff; /* Azul */
}

.valor-card.preco .valor-amount {
    color: #28a745; /* Verde */
}

.valor-card.faturamento .valor-amount {
    color: #6f42c1; /* Roxo */
}

.valor-card.lucro .valor-amount.positivo {
    color: #28a745; /* Verde */
}
 
.valor-card.lucro .valor-amount.negativo {
    color: #dc3545; /* Vermelho */
}

/* Seta entre custo e preço */
.arrow-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 10px;
}

.arrow {
    font-size: 1.8em;
    color: #6c757d;
    margin-bottom: 5px;
}

.margin-info {
    font-size: 0.85em;
    color: #28a745;
    font-weight: bold;
    background-color: rgba(40, 167, 69, 0.1);
    padding: 2px 8px;
    border-radius: 12px;
}

/* Estilos para a nova barra de progresso e formatação do card "Valor a Receber" */
.valor-meta {
    font-size: 0.85em;
    color: #555;
    margin-bottom: 5px;
}

.progress-container {
    width: 100%;
    height: 8px;
    background-color: #e9ecef;
    border-radius: 4px;
    margin: 8px 0;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background-image: linear-gradient(to right, rgba(40, 167, 69, 0.7), rgba(40, 167, 69, 1));
    border-radius: 4px;
    transition: width 0.5s ease-in-out;
}

.meta-atingida {
    color: #28a745;
    font-weight: bold;
}

.resultado-sucesso {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 15px;
    padding: 12px 15px;
    background-color: rgba(40, 167, 69, 0.12);
    border-radius: 6px;
    text-align: center;
    border: 1px solid rgba(40, 167, 69, 0.3);
    font-size: 0.9em;
    animation: pulse-success 2s infinite;
}

.sucesso-icon {
    font-size: 1.3em;
    margin-right: 10px;
    color: #28a745;
}

.sucesso-text {
    color: #155724;
}

.sucesso-text strong {
    color: #28a745;
    font-weight: 700;
}

@keyframes pulse-success {
    0% {
        box-shadow: 0 0 0 0 rgba(40, 167, 69, 0.4);
    }
    70% {
        box-shadow: 0 0 0 6px rgba(40, 167, 69, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(40, 167, 69, 0);
    }
}

/* Estilo específico para dar destaque ao card de valor a receber */
.valor-card.lucro {
    border-top: 3px solid #28a745;
}

.valor-card.lucro .valor-amount {
    font-size: 2em;
    font-weight: 700;
    margin-bottom: 5px;
    color: #28a745;
}

/* Tooltip de ajuda */
.tooltip-icon {
    display: inline-block;
    width: 16px;
    height: 16px;
    background-color: #17a2b8;
    color: white;
    border-radius: 50%;
    text-align: center;
    line-height: 16px;
    font-size: 12px;
    margin-left: 5px;
    cursor: help;
    position: relative;
}

/* Tooltip de ajuda quando hover */
.tooltip-icon:hover::after {
    content: attr(title);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: #343a40;
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    white-space: nowrap;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

/* Seta triangular abaixo do tooltip */
.tooltip-icon:hover::before {
    content: "";
    position: absolute;
    bottom: calc(100% - 5px);
    left: 50%;
    transform: translateX(-50%);
    border-width: 5px 5px 0;
    border-style: solid;
    border-color: #343a40 transparent transparent;
    z-index: 1000;
}

/* Ajustes responsivos */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
    }

    .sidebar {
        flex-basis: auto; /* Altura automática em mobile */
        width: 100%;
        margin-bottom: 20px;
        order: -1; /* Coloca a sidebar no topo em mobile */
    }

    .main-content {
        width: 100%;
        padding: 15px;
    }

    .ingrediente-item {
        grid-template-columns: 1fr 1fr;
        row-gap: 8px;
    }

    .ingrediente-item input {
        width: 100%;
    }

    .remover-ingrediente {
        justify-self: start; /* Alinha à esquerda em mobile */
        margin-top: 5px;
    }

    #ajuste-otimizacao input[type="range"] {
        width: 100%;
        margin: 5px 0;
    }
    
    .ajuste-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .ajuste-header h2 {
        margin-bottom: 8px;
    }
    
    .slider-row {
        display: grid;
        grid-template-columns: auto 1fr auto;
        align-items: center;
    }
    
    .slider-label-left, .slider-label-right {
        margin: 0;
        font-size: 0.75em;
    }
    
    .slider-group {
        padding: 10px;
    }
    
    .equilibrio-container {
        margin: 12px 0;
    }
    
    .btn-equilibrio {
        padding: 10px;
        font-size: 0.95em;
        width: 100%;
    }
    
    .resultado-item.destaque {
        font-size: 1em;
    }

    .buttons-container {
        flex-direction: column;
    }

    .buttons-container button {
        margin-bottom: 10px;
    }

    /* Ajustes para o grid de resultados em telas pequenas */
    .resultados-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .resultados-grid .resultado-item:nth-child(1),
    .resultados-grid .resultado-item:nth-child(2) {
        margin-bottom: 0;
    }

    .resultados-grid .resultado-item:nth-child(3) {
        border-top: 1px solid rgba(0,0,0,0.05);
        padding-top: 15px;
        margin-top: 5px;
    }

    .resultados-grid .resultado-item:nth-child(4) {
        border-top: none;
        padding-top: 12px;
    }

    /* Diminuir o tamanho dos textos para melhor ajuste */
    .resultados-grid .resultado-item.destaque {
        font-size: 1.1em;
    }

    /* Responsividade para os novos cards de resultados */
    .valores-principais-container {
        flex-direction: column;
        gap: 15px;
    }
    
    .arrow-container {
        flex-direction: row;
        padding: 5px 0;
    }
    
    .arrow {
        transform: rotate(90deg);
        margin-bottom: 0;
        margin-right: 10px;
    }
    
    .valores-financeiros-container {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .valor-card {
        padding: 12px;
    }
    
    .valor-amount {
        font-size: 1.6em;
    }
    
    .resultado-alerta {
        flex-direction: column;
        text-align: center;
    }
    
    .alerta-icon {
        margin-right: 0;
        margin-bottom: 8px;
        font-size: 1.5em;
    }

    .progress-container {
        height: 6px;
    }
    
    .valor-card.lucro .valor-amount {
        font-size: 1.8em;
    }
}

/* Estilos para validação (exemplo) */
input:required:invalid {
    border-color: #dc3545; /* Vermelho para campos inválidos */
}
input:required:valid {
    border-color: #28a745; /* Verde para campos válidos */
}

.error-message {
    color: #dc3545;
    font-size: 0.9em;
    margin-top: 5px;
}

.custo-info {
    font-size: 0.8em;
    color: #6c757d;
    font-style: italic;
    margin-left: 5px;
}

.equilibrio-container {
    margin: 20px 0;
    text-align: center;
}

.btn-equilibrio {
    background-color: #17a2b8;
    margin: 5px 0;
    padding: 10px 15px;
    border-radius: 6px;
    font-weight: bold;
    font-size: 0.95em;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    width: auto;
    min-width: 180px;
}

.btn-equilibrio:hover {
    background-color: #138496;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.btn-destacado {
    animation: pulse 1.5s;
    box-shadow: 0 0 15px rgba(23, 162, 184, 0.7);
}

.icon-equilibrio {
    margin-right: 8px;
    font-size: 1.2em;
    display: inline-block;
}

.equilibrio-help {
    font-size: 0.85em;
    color: #6c757d;
    margin-top: 5px;
    max-width: 450px;
    margin-left: auto;
    margin-right: auto;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 rgba(23, 162, 184, 0); }
    50% { box-shadow: 0 0 20px rgba(23, 162, 184, 0.8); }
    100% { box-shadow: 0 0 0 rgba(23, 162, 184, 0); }
}

.destaque-equilibrio {
    animation: highlight-background 3s;
    border-radius: 4px;
    padding: 4px;
}

@keyframes highlight-background {
    0% { background-color: rgba(23, 162, 184, 0); }
    20% { background-color: rgba(23, 162, 184, 0.2); }
    80% { background-color: rgba(23, 162, 184, 0.2); }
    100% { background-color: rgba(23, 162, 184, 0); }
}

/* Estilo para mensagem de erro de validação */
.erro-validacao {
    background-color: rgba(220, 53, 69, 0.1);
    border: 1px solid rgba(220, 53, 69, 0.3);
    border-radius: 6px;
    padding: 15px;
    margin-top: 15px;
    text-align: center;
    color: #721c24;
    font-weight: 500;
}

/* Animação para destacar resultados após rolagem */
@keyframes highlight-section {
    0% { box-shadow: 0 0 0 0 rgba(40, 167, 69, 0.4); }
    50% { box-shadow: 0 0 20px rgba(40, 167, 69, 0.6); }
    100% { box-shadow: 0 0 0 0 rgba(40, 167, 69, 0.4); }
}

.highlight-section {
    animation: highlight-section 1.5s ease-in-out;
}

#resultados-simulacao {
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

#resultados-simulacao.highlight-section,
#ajuste-otimizacao.highlight-section {
    animation: highlight-section 1.5s ease-in-out;
}

/* Estilos para o Pop-up de Cookies */
.cookie-popup {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #333;
    color: white;
    padding: 15px 20px;
    text-align: center;
    z-index: 1000;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.2);
    display: none; /* Inicialmente oculto */
}

.cookie-popup p {
    margin: 0 0 10px 0;
    font-size: 0.9em;
}

.cookie-popup a {
    color: #4CAF50;
    text-decoration: underline;
}

.cookie-popup button {
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 10px 20px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 1em;
    margin-top: 5px;
    cursor: pointer;
    border-radius: 5px;
}

.cookie-popup button:hover {
    background-color: #45a049;
}


