* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    background-color: #f5f5f5;
}

header {
    padding: 1rem 2rem;
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.logo img {
    height: 40px;
}

.menu {
    display: flex;
    gap: 2rem;
}

.menu a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
}

.menu a:hover {
    color: #0066ff;
}

main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.hero {
    text-align: center;
    padding: 4rem 0;
}

.hero h1 {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 1rem;
}

.hero p {
    color: #666;
    margin-bottom: 2rem;
}

.btn-primary {
    display: inline-block;
    padding: 0.8rem 2rem;
    background-color: #0066ff;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 500;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background-color: #0052cc;
}

.btn-secondary {
    display: inline-block;
    padding: 0.8rem 2rem;
    background-color: #28a745;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 500;
    border: none;
    cursor: pointer;
    margin-top: 1rem;
}

.btn-secondary:hover {
    background-color: #218838;
}

.features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 4rem;
}

.feature-card {
    padding: 2rem;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.feature-card h2 {
    color: #0066ff;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.feature-card p {
    color: #666;
}

/* Estilos da Calculadora */
.calculator-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
}

.calculator-container h1 {
    text-align: center;
    margin-bottom: 2rem;
    color: #333;
}

.calculator-form {
    background-color: #fff;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #333;
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
}

.calculation-type {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
}

.type-button {
    flex: 1;
    padding: 0.8rem;
    height: 45px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background-color: #fff;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.type-button.active {
    background-color: #0066ff;
    color: #fff;
    border-color: #0066ff;
}

.calc-form {
    display: none;
    margin-top: 1.5rem;
}

.calc-form.active {
    display: block;
}

.resultado-container {
    margin-top: 2rem;
    background-color: #fff;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1rem;
}

th, td {
    padding: 0.8rem;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

th {
    background-color: #f8f9fa;
    font-weight: 600;
}

tr:hover {
    background-color: #f8f9fa;
}

/* Estilos da Exportação */
.export-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.export-controls {
    margin-bottom: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.export-options {
    display: flex;
    gap: 1rem;
}

.documento-a4 {
    width: 100%;
    max-width: 2480px;
    height: auto;
    aspect-ratio: 1 / 1.4142; /* Proporção A4 */
    margin: 0 auto;
    background: white;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    overflow: visible; /* Alterado de hidden para visible */
    padding: 40px;
}

.conteudo-exportacao {
    width: 85%;
    height: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding-top: 2rem;
}

.export-header {
    text-align: center;
    margin-bottom: 2rem;
}

.export-logo {
    height: 45px;
}

.banner-superior {
    background: linear-gradient(90deg, #0045D7 0%, #002471 100%);
    border-radius: 10px;
    padding: 2rem;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    position: relative;
    overflow: hidden;
    min-height: 180px;
    margin-bottom: 2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1); /* Sombra sutil para o banner */
}

.banner-info {
    position: relative;
    z-index: 2;
    flex: 0 0 60%;
}

.banner-info h2 {
    font-size: 1.5rem;
    margin-bottom: 0.8rem;
    font-weight: 500;
    padding: 2px;
}

.banner-info p {
    margin-bottom: 0.5rem;
    font-size: 1rem;
    padding: 2px;
}

.banner-image {
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    width: 40%;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.banner-image img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    max-width: 100%;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.tabela-container {
    margin: 1rem 0;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.tabela-taxas {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 10px;
    overflow: hidden;
    font-size: 0.85rem;
    height: 100%;
    border: 1px solid #A2A2A2;
}

.tabela-taxas th {
    background: linear-gradient(90deg, #002471 0%, #0045D7 100%);
    color: white;
    padding: 0.8rem 1rem;
    text-align: center;
    font-weight: 500;
    border-right: 1px solid #A2A2A2;
}

.tabela-taxas th:last-child {
    background: linear-gradient(90deg, #0045D7 0%, #002471 100%);
    border-right: none;
}

.tabela-taxas td {
    padding: 0.8rem 1rem;
    border-bottom: 1px solid #A2A2A2;
    border-right: 1px solid #A2A2A2;
    background-color: #f8f9fa;
    text-align: center;
}

.tabela-taxas td:last-child {
    border-right: none;
}

.tabela-taxas tr:last-child td {
    border-bottom: none;
}

.tabela-taxas td[contenteditable="true"] {
    transition: background-color 0.2s;
}

.tabela-taxas td[contenteditable="true"]:hover {
    background-color: rgba(0, 102, 255, 0.05);
}

.tabela-taxas td[contenteditable="true"]:focus {
    background-color: rgba(0, 102, 255, 0.1);
    box-shadow: none;
}

.info-proposta {
    margin: 0.5rem 0;
    color: #333;
    font-size: 0.9rem;
}

.info-proposta p {
    margin-bottom: 0.3rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.info-proposta .data-field {
    color: #0066ff;
    font-weight: 500;
    padding: 2px 4px;
    border-radius: 4px;
    min-width: 100px;
    display: inline-block;
}

.info-proposta .data-field:hover {
    background-color: rgba(0, 102, 255, 0.05);
}

.info-proposta .data-field:focus {
    background-color: rgba(0, 102, 255, 0.1);
    box-shadow: none;
}

.banner-inferior {
    margin-top: 0.5rem;
    text-align: center;
    width: 100%;
}

.banner-inferior img {
    width: 100%;
    border-radius: 10px;
    margin-top: 0;
    max-width: 100%;
    height: auto;
}

/* Estilos para elementos específicos no documento de exportação */
.cliente-nome, .taxa-valor {
    font-weight: 500;
}

/* Garantindo que imagens sejam responsivas */
.img-fluid {
    max-width: 100%;
    height: auto;
    display: block;
}

[contenteditable="true"] {
    outline: none;
    border-radius: 4px;
    transition: background-color 0.2s;
}

[contenteditable="true"]:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

[contenteditable="true"]:focus {
    background-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.2);
}

.tabela-taxas th:first-child {
    background: linear-gradient(90deg, #002471 0%, #0045D7 100%);
}

.tabela-taxas th:last-child {
    background: linear-gradient(90deg, #0045D7 0%, #002471 100%);
}

/* Estilos para Tooltips */
.tooltip {
    position: relative;
    display: inline-block;
    cursor: help;
}

.tooltip .tooltip-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    background-color: #0066ff;
    color: white;
    border-radius: 50%;
    font-size: 11px;
    font-weight: bold;
    margin-left: 5px;
    cursor: help;
}

.tooltip .tooltip-text {
    visibility: hidden;
    width: 220px;
    background-color: #333;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 8px;
    position: absolute;
    z-index: 10;
    bottom: 125%;
    left: 50%;
    margin-left: -110px;
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 0.85rem;
    font-weight: normal;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    pointer-events: none;
}

.tooltip .tooltip-text::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #333 transparent transparent transparent;
}

.tooltip:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}

.tooltip-example {
    display: block;
    margin-top: 5px;
    font-style: italic;
    color: #ccc;
}

/* Posicionamento alternativo para dispositivos móveis */
@media (max-width: 768px) {
    .tooltip .tooltip-text {
        width: 180px;
        margin-left: -90px;
    }
}

/* Media Queries para Responsividade */
@media (max-width: 768px) {
    /* Ajustes gerais */
    body {
        font-size: 14px;
    }

    main {
        padding: 1rem;
    }

    .hero {
        padding: 2rem 0;
    }

    .hero h1 {
        font-size: 1.8rem;
    }

    /* Ajustes na navegação */
    nav {
        flex-direction: column;
        gap: 1rem;
    }

    .menu {
        width: 100%;
        justify-content: center;
    }

    /* Ajustes nos cards de features */
    .features {
        grid-template-columns: 1fr;
    }

    /* Ajustes na calculadora */
    .calculator-container {
        padding: 1rem;
    }

    .calculator-form {
        padding: 1rem;
    }

    .calculation-type {
        flex-direction: column;
        gap: 0.5rem;
    }

    /* Ajustes na exportação */
    .export-container {
        padding: 0.75rem;
    }

    .export-controls {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }

    .export-options {
        flex-direction: column;
        gap: 0.5rem;
    }

    .documento-a4 {
        padding: 15px;
        aspect-ratio: auto; /* Remover proporção fixa em mobile */
        height: auto;
        overflow-y: visible;
        box-shadow: 0 0 6px rgba(0, 0, 0, 0.08);
    }

    .conteudo-exportacao {
        width: 100%;
        padding-top: 1rem;
        gap: 1rem;
    }

    .banner-superior {
        flex-direction: column;
        padding: 1rem;
        min-height: auto;
    }

    .banner-info {
        flex: 1;
        width: 100%;
        margin-bottom: 1rem;
    }

    .banner-image {
        position: relative;
        width: 100%;
        height: 130px; /* Altura maior para a imagem em tablets */
        margin-top: 1rem;
    }

    .banner-image img {
        object-fit: contain;
        width: 100%;
        height: 100%;
    }

    .tabela-taxas th,
    .tabela-taxas td {
        padding: 0.5rem;
        font-size: 0.8rem;
    }

    .export-header {
        margin-bottom: 1rem;
    }
}

@media (max-width: 480px) {
    /* Ajustes adicionais para telas muito pequenas */
    .hero h1 {
        font-size: 1.5rem;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
        text-align: center;
        padding: 0.8rem 1rem;
    }

    .resultado-container {
        padding: 1rem;
    }

    /* Melhorias específicas para exportação em telas muito pequenas */
    .export-container {
        padding: 0.5rem;
    }

    .documento-a4 {
        padding: 10px;
        margin: 0;
        box-shadow: none;
        border: 1px solid #eee;
    }

    .conteudo-exportacao {
        gap: 0.75rem;
    }

    .banner-info h2 {
        font-size: 1.2rem;
    }

    .banner-info p {
        font-size: 0.9rem;
        margin-bottom: 0.3rem;
    }

    .banner-superior {
        padding: 0.75rem;
        min-height: 160px; /* Garantir altura mínima para o banner */
        border-radius: 8px; /* Bordas mais suaves em dispositivos móveis */
        box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    }

    .banner-image {
        height: 250px; /* Aumentar altura da imagem */
        margin-top: 0.75rem;
        padding: 0.25rem; /* Espaçamento interno para a imagem */
    }

    .banner-image img {
        object-fit: contain; /* Garantir que a imagem seja exibida por completo */
        max-height: 100%;
        width: 100%;
        border-radius: 10px; /* Cantos arredondados para a imagem */
        transition: transform 0.3s ease; /* Transição suave para efeitos */
    }

    .tabela-taxas th,
    .tabela-taxas td {
        padding: 0.4rem;
        font-size: 0.75rem;
    }

    .info-proposta p {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.2rem;
    }

    .info-proposta .data-field {
        min-width: auto;
        width: 100%;
    }

    .export-logo {
        height: 35px;
    }

    .export-header {
        margin-bottom: 0.75rem;
    }

    .tabela-container {
        margin: 0.5rem 0;
    }

    /* Estilos melhorados para elementos específicos em mobile */
    .cliente-nome, .taxa-valor {
        display: inline-block;
        margin-top: 0.1rem;
    }
}

/* Estilos para o Comparativo com Concorrentes */
.comparativo-container {
    background-color: #fff;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.comparativo-container h2 {
    color: #333;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    text-align: center;
}

.comparativo-intro {
    text-align: center;
    color: #666;
    margin-bottom: 1.5rem;
}

.tabs-comparativo {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.tab-button {
    padding: 0.5rem 1rem;
    background-color: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 0.9rem;
}

.tab-button.active {
    background-color: #0066ff;
    color: white;
    border-color: #0066ff;
}

/* Estilo para botões desabilitados */
.tab-button[disabled], .tab-button.disabled {
    opacity: 0.6;
    cursor: not-allowed !important;
    position: relative;
    background-color: #f0f0f0;
    color: #999;
    border-color: #ddd;
}

.tab-button[disabled]:after, .tab-button.disabled:after {
    content: " (Em breve)";
    font-size: 80%;
    color: #999;
}

.tabela-comparativo {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.tabela-comparativo th {
    background: linear-gradient(90deg, #002471 0%, #0045D7 100%);
    color: white;
    padding: 0.8rem;
    text-align: center;
    font-weight: 600;
    border-bottom: 2px solid #ddd;
}

.tabela-comparativo td {
    padding: 0.8rem;
    text-align: center;
    border-bottom: 1px solid #ddd;
}

.tabela-comparativo tr.owempay-row {
    background-color: rgba(0, 102, 255, 0.05);
    font-weight: 600;
}

.tabela-comparativo tr:hover {
    background-color: rgba(0, 102, 255, 0.02);
}

.tabela-comparativo .destaque-positivo {
    color: #28a745;
    font-weight: 600;
}

.tabela-comparativo .destaque-negativo {
    color: #dc3545;
}

.vantagens-lista {
    text-align: left;
    padding-left: 1.2rem;
    font-size: 0.85rem;
}

.comparativo-disclaimer {
    margin-top: 1rem;
    font-size: 0.75rem;
    color: #888;
    font-style: italic;
}

/* Ajustes responsivos para o comparativo */
@media (max-width: 768px) {
    .tabs-comparativo {
        flex-direction: row;
        overflow-x: auto;
        padding-bottom: 0.5rem;
    }

    .tab-button {
        flex: 0 0 auto;
        white-space: nowrap;
    }

    .tabela-comparativo {
        display: block;
        overflow-x: auto;
    }

    .tabela-comparativo th,
    .tabela-comparativo td {
        padding: 0.5rem;
        font-size: 0.8rem;
    }
}

/* Estilos para campos editáveis do comparativo */
.editable-field {
    width: 80%;
    padding: 6px 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.9rem;
    background-color: #f9f9f9;
    text-align: center;
    transition: all 0.3s;
    color: #333;
    font-weight: inherit;
}

.editable-field:focus {
    border-color: #0066ff;
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 102, 255, 0.2);
    background-color: #fff;
}

.tabela-comparativo .economia-baixa {
    color: #28a745;
    font-weight: 400;
}

.botoes-container {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.botoes-container button {
    flex: 1;
    height: 45px;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

#calcular, #modoEdicaoComparativo {
    display: inline-block;
    padding: 0.8rem 2rem;
    background-color: #0066ff;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 102, 255, 0.2);
}

#modoEdicaoComparativo:hover {
    background-color: #0052cc;
}

#modoEdicaoComparativo.active {
    background-color: #28a745;
    color: white;
    border-color: #28a745;
}

.tabela-comparativo tr td:first-child strong {
    font-size: 1.1rem;
    color: #333;
}

.tabela-comparativo .economia-alta {
    color: #28a745;
    font-weight: 700;
}

.tabela-comparativo .economia-media {
    color: #28a745;
    font-weight: 600;
}

/* Estilos para o modo comparativo de parcelas */
.comparativo-parcelas-container {
    margin-top: 1.5rem;
    border-top: 1px solid #eee;
    padding-top: 1.5rem;
}

/* Estilos específicos para modo fluxo */
.comparativo-parcelas-container.modo-fluxo {
    border-top: none;
    margin-top: 0;
    padding-top: 0;
}

.modo-fluxo .comparativo-parcelas-titulo {
    color: #0066ff;
    font-weight: 600;
}

.modo-fluxo .tabela-scroll {
    box-shadow: 0 4px 12px rgba(0, 102, 255, 0.15);
}

.modo-fluxo .tabela-scroll th {
    background: linear-gradient(90deg, #0066ff 0%, #0052cc 100%);
}

.comparativo-parcelas-titulo {
    font-size: 1.2rem;
    color: #333;
    margin-bottom: 1rem;
    text-align: center;
}

.comparativo-parcelas-subtitulo {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 1.5rem;
    text-align: center;
}

/* Estilos para tabela com scroll horizontal */
.tabela-scroll-container {
    position: relative;
    width: 100%;
    overflow-x: auto;
    margin-bottom: 0.5rem;
    border: 1px solid #eee;
    border-radius: 8px;
}

.tabela-scroll {
    min-width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.tabela-scroll thead {
    position: sticky;
    top: 0;
    z-index: 2;
}

.tabela-scroll .coluna-fixa {
    position: sticky;
    left: 0;
    z-index: 1;
    background-color: #fff;
    box-shadow: 2px 0 5px -2px rgba(0,0,0,0.1);
}

.tabela-scroll th.coluna-fixa {
    z-index: 3;
    background: linear-gradient(90deg, #002471 0%, #0045D7 100%);
}

.tabela-scroll td:not(.coluna-fixa),
.tabela-scroll th:not(.coluna-fixa) {
    min-width: 120px;
}

.tabela-scroll td.coluna-fixa {
    background-color: #fff;
}

.tabela-scroll tr:nth-child(even) td.coluna-fixa {
    background-color: #f9f9f9;
}

.tabela-scroll tr:hover td.coluna-fixa {
    background-color: #f0f7ff;
}

.scroll-hint {
    text-align: center;
    color: #666;
    font-size: 0.85rem;
    margin-top: 0.5rem;
}

.scroll-hint i {
    margin-right: 0.25rem;
    color: #0066ff;
}

/* Estilo para tag de economia */
.economia-tag {
    display: inline-block;
    font-size: 0.8rem;
    color: #28a745;
    background-color: rgba(40, 167, 69, 0.1);
    padding: 2px 5px;
    border-radius: 3px;
    margin-top: 3px;
    font-weight: 600;
}

/* Estilo para tag de custo adicional */
.custo-adicional-tag {
    display: inline-block;
    font-size: 0.8rem;
    color: #dc3545;
    background-color: rgba(220, 53, 69, 0.1);
    padding: 2px 5px;
    border-radius: 3px;
    margin-top: 3px;
    font-weight: 600;
}

.botoes-container {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.botoes-container button {
    flex: 1;
}

.hidden-field {
    /* Deixamos isto vazio para não esconder os campos */
    /* Os campos precisam estar visíveis para funcionamento correto */
}

/* Nova classe para ocultar visualmente mas manter funcional */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
    white-space: nowrap;
}

/* Estilo para o botão de remover concorrente */
.btn-remover-concorrente {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    background-color: #dc3545;
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s ease;
    margin-left: 10px;
}

.btn-remover-concorrente:hover {
    background-color: #bd2130;
    transform: scale(1.05);
}

.btn-remover-concorrente i {
    font-size: 16px;
}

/* Estilos para o container com ações de concorrentes */
.concorrente-acoes {
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    text-align: center;
}

.badge.bg-primary {
    white-space: nowrap;
    display: inline-block;
    margin: 0 auto;
}

/* Adicionar estilo para centralizar a coluna de ações na tabela */
.tabela-comparativo th:last-child,
.tabela-comparativo td:last-child {
    text-align: center;
}

/* Estilos para tabela de resultados do modo Fluxo */
#fluxoResultadoContainer {
    background-color: #f7f9fc;
    border: 1px solid #e0e4e9;
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 3px 10px rgba(0, 102, 255, 0.1);
    margin-bottom: 2.5rem;
}

#fluxoResultadoContainer h2 {
    color: #0066ff;
    text-align: center;
    margin-bottom: 1rem;
    font-size: 1.6rem;
}

#fluxoResultadoContainer .resultado-intro {
    text-align: center;
    margin-bottom: 1.5rem;
    color: #555;
    font-size: 1.1rem;
}

#fluxoResultadoContainer .destaque-positivo {
    color: #0066ff;
    font-weight: 700;
    font-size: 1.2rem;
    background-color: rgba(0, 102, 255, 0.1);
    padding: 2px 5px;
    border-radius: 3px;
}

/* Estilos mais específicos para a tabela de resultados do Fluxo */
#tabelaFluxoResultado {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid #e0e4e9;
    margin-top: 1.5rem;
    background-color: white;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

#tabelaFluxoResultado th {
    background-color: #0066ff;
    color: white;
    padding: 12px 15px;
    text-align: center;
    font-weight: 600;
    border: 1px solid #0057d9;
}

#tabelaFluxoResultado td {
    padding: 10px 15px;
    border: 1px solid #e0e4e9;
    text-align: center;
}

#tabelaFluxoResultado tr:nth-child(even) {
    background-color: #f7f9fc;
}

#tabelaFluxoResultado tr:hover {
    background-color: #edf5ff;
}

#tabelaFluxoResultado .coluna-fixa {
    background-color: #f0f7ff;
    font-weight: 500;
}

#fluxoResultadoBody tr:first-child {
    font-weight: 700;
}

/* Ajustes adicionais para manter consistência com o modo Antecipado */
#fluxoResultadoContainer .tabela-scroll-container {
    overflow-x: auto;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

/* Estilo para destacar a primeira linha da tabela de fluxo */
#fluxoResultadoBody tr.destaque-linha {
    background-color: #edf5ff;
    font-weight: 600;
}

#fluxoResultadoContainer .tabela-scroll tbody tr:hover {
    background-color: rgba(0, 102, 255, 0.1);
}

/* Container com ações de concorrentes */

/* Melhorias para botões em dispositivos móveis */
@media (max-width: 768px) {
    #modoEdicaoComparativo {
        padding: 0.8rem 1rem; /* Reduzir padding horizontal */
        font-size: 0.9rem; /* Reduzir tamanho da fonte */
        white-space: nowrap; /* Evitar quebra de linha */
        overflow: hidden; /* Esconder conteúdo que ultrapassa os limites */
        text-overflow: ellipsis; /* Mostrar ... se o texto for muito longo */
        min-width: 0; /* Permitir que o botão encolha abaixo da largura do conteúdo */
    }
}

/* Ajustar a legenda do botão em telas muito pequenas */
@media (max-width: 400px) {
    #modoEdicaoComparativo .fa-save {
        margin-right: 5px; /* Reduzir espaço entre ícone e texto */
    }

    #modoEdicaoComparativo span {
        display: none; /* Ocultar o texto original */
    }

    #modoEdicaoComparativo::after {
        content: "Salvar"; /* Substituir por texto mais curto */
    }
}

/* Estilos do Rodapé */
footer {
    background-color: #f8f9fa;
    padding: 3rem 2rem;
    border-top: 1px solid #e9ecef;
    margin-top: 3rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 2rem;
}

.footer-logo {
    margin-bottom: 1.5rem;
}

.footer-logo img {
    height: 40px;
}

.footer-description {
    color: #6c757d;
    margin-bottom: 1.5rem;
    line-height: 1.6;
    max-width: 90%;
}

.footer-links h3 {
    font-size: 1.2rem;
    margin-bottom: 1.2rem;
    color: #333;
}

.footer-links ul {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    text-decoration: none;
    color: #6c757d;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #0066ff;
}

/* Novos estilos aprimorados para os ícones de redes sociais */
.footer-social {
    display: flex;
    gap: 1.2rem;
    margin-top: 1.5rem;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background-color: #f0f2f5;
    color: #0066ff;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.footer-social a:hover {
    background-color: #0066ff;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 102, 255, 0.3);
}

.footer-social a:active {
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(0, 102, 255, 0.2);
}

.footer-social a i {
    font-size: 1.2rem;
    position: relative;
    z-index: 2;
}

.footer-social a::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background-color: rgba(0, 102, 255, 0.1);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.4s ease, height 0.4s ease;
    z-index: 1;
}

.footer-social a:hover::before {
    width: 120%;
    height: 120%;
}

/* Estilos específicos para cada rede social */
.footer-social a[aria-label="LinkedIn"]:hover {
    background-color: #0077B5;
}

.footer-social a[aria-label="Instagram"]:hover {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.footer-social a[aria-label="YouTube"]:hover {
    background-color: #FF0000;
}

.footer-social a[aria-label="Facebook"]:hover {
    background-color: #1877F2;
}

/* Adaptações para dispositivos móveis */
@media (max-width: 768px) {
    .footer-social {
        justify-content: center;
    }

    .footer-social a {
        width: 38px;
        height: 38px;
    }

    .footer-social a i {
        font-size: 1.1rem;
    }
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 2rem;
    margin-top: 2rem;
    border-top: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #6c757d;
    font-size: 0.9rem;
}

.footer-bottom p {
    margin: 0;
}

.footer-info {
    margin-top: 1rem;
    color: #6c757d;
    font-size: 0.9rem;
}

.footer-info p {
    margin-bottom: 0.5rem;
}

/* Responsividade do rodapé */
@media (max-width: 768px) {
    .footer-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-description {
        max-width: 100%;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
}