/* Configuração geral */
body {
    font-family: sans-serif;
    margin: 0;
    background-color: #f4f4f4;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
    box-sizing: border-box;
}

/* LOGO responsiva */
.logo-container {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    margin-bottom: 20px;
}

#site-logo {
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: 10px;
}

/* Caixa principal */
.container {
    background-color: #fff;
    padding: 20px 30px;
    border-radius: 8px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 750px;
    text-align: center;
}

/* Título */
h1 {
    color: #333;
    margin-top: 0;
    margin-bottom: 20px;
}

/* Entrada de valor */
.input-section {
    margin-bottom: 20px;
}

.input-section label {
    display: block;
    margin-bottom: 8px;
    color: #555;
    font-weight: bold;
}

.input-section input[type="number"] {
    width: calc(100% - 22px);
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 18px;
    text-align: center;
    font-weight: bold;
    background-color: #e9ecef;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
}

/* Botões de ajuste */
.botao-ajuste {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 15px;
}

.ajuste-btn {
    padding: 12px 16px;
    font-size: 16px;
    font-weight: bold;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: 0.3s;
    flex: 1 1 30%;
    min-width: 70px;
}

.ajuste-btn[data-valor^="-"] {
    background-color: #dc3545;
    color: white;
}

.ajuste-btn[data-valor^="+"] {
    background-color: #28a745;
    color: white;
}

.ajuste-btn:hover {
    transform: scale(1.05);
    opacity: 0.9;
}

/* Exibição do valor do empréstimo */
.valor-total-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px 15px;
    background-color: #e9ecef;
    border-radius: 6px;
    text-align: center;
    margin-bottom: 20px;
}

.valor-total-display h2 {
    margin: 0;
    font-size: 18px;
    color: #333;
}

#valorSolicitadoDisplay {
    display: block;
    margin-top: 8px;
    font-size: 28px;
    font-weight: bold;
    color: #007bff;
    padding: 8px 16px;
    border-radius: 6px;
    background-color: white;
    box-shadow: 0 0 6px rgba(0, 0, 0, 0.08);
}

/* Tabela responsiva */
.tabela-section {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 0 auto;
    padding: 5px;
    box-shadow: inset -8px 0 8px -8px rgba(0,0,0,0.1);
}

table {
    width: 100%;
    min-width: 100%;
    border-collapse: collapse;
    margin: 0 auto;
}

th, td {
    border: 1px solid #ddd;
    padding: 10px 8px;
    text-align: center;
    white-space: nowrap;
}

th {
    background-color: #007bff;
    color: white;
    position: sticky;
    top: 0;
}

/* Esconde a versão curta por padrão */
.short-text {
    display: none;
}

/* Barra de rolagem personalizada */
.tabela-section::-webkit-scrollbar {
    height: 6px;
}

.tabela-section::-webkit-scrollbar-thumb {
    background: #007bff;
    border-radius: 3px;
}

/* Botão do WhatsApp */
.whatsapp-button {
    background-color: #25D366;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    text-decoration: none;
    display: inline-block;
    transition: background-color 0.3s;
}

.whatsapp-button:hover {
    background-color: #1DAE50;
}

/* Responsividade adicional para celular */
@media (max-width: 600px) {
    h1 {
        font-size: 24px;
    }

    .ajuste-btn {
        font-size: 14px;
        padding: 10px;
        min-width: 60px;
    }

    .container {
        padding: 15px;
    }

    th, td {
    font-size: 18px; /* Aumenta o tamanho da fonte */
    font-weight: bold; /* Deixa o texto em negrito */
}


    #valorSolicitadoDisplay {
        font-size: 24px;
        padding: 6px 12px;
    }

    .tabela-section {
        padding: 0;
    }

    .whatsapp-button {
        padding: 6px 10px;
        font-size: 12px;
    }

    /* Mostra Qtd e esconde texto completo em mobile */
    .full-text {
        display: none;
    }
    
    .short-text {
        display: inline;
    }

    /* Ajusta largura das colunas */
    th:nth-child(2), td:nth-child(2) {
        max-width: 50px;
    }
    
    th:nth-child(3), td:nth-child(3) {
        max-width: 90px;
    }
}
th, td {
    font-size: 16px; /* Aumenta o tamanho da fonte */
    font-weight: bold; /* Deixa o texto em negrito */
}
