/* Reset básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', Arial, sans-serif;
}

/* Corpo da página */
body {
    background-color: #1d1d1d;
    color: #f5f5f5;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

.main-container {
    background: #2a2a2a;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 700px;
    text-align: center;
}

/* Logo */
.logo img {
    width: 100px;
    height: auto;
}

/* Título */
h1 {
    font-size: 60px;
    font-weight: 700;
    font-family: 'Bebas Neue', sans-serif;
    letter-spacing: 1px;
    background: linear-gradient(45deg, #28a745, #74d49b, #28a745);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    color: transparent;
    animation: gradient 15s ease infinite;
}

@keyframes gradient {
    0% {
        background-position: 300% 0%;
    }
    50% {
        background-position: 0% 100%;
    }
    100% {
        background-position: 300% 0%;
    }
}

/* Formulário */
.form-container {
    margin-top: 20px;
    text-align: left;
    width: 100%;
}

label {
    display: block;
    margin-top: 15px;
    font-weight: 500;
    color: #ccc;
    font-size: 16px;
}

input {
    width: 100%;
    padding: 12px;
    margin-top: 5px;
    border: 1px solid #444;
    border-radius: 5px;
    outline: none;
    background-color: #333;
    color: #f5f5f5;
    font-size: 16px;
}

/* Botões */
.btn-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

button, .btn {
    padding: 12px 20px;
    font-size: 16px;
    font-weight: 600;
    border: 2px solid transparent;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    text-align: center;
}

.btn {
    background-color: #28a745;
    color: #fff;
    border-color: #28a745;
}

.btn:hover {
    background-color: #218838;
}

/* Mensagens */
.erro {
    color: #dc3545;
    font-size: 14px;
    margin-top: 10px;
}

/* Resultados */
.resultados {
    margin-top: 20px;
    text-align: left;
    font-size: 14px;
    color: #f5f5f5;
    line-height: 1.8;
}

.resultados p {
    font-weight: bold;
}

.resultados table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.resultados th, .resultados td {
    padding: 12px;
    text-align: center;
    border: 1px solid #444;
}

.resultados th {
    background-color: #333;
    color: #28a745;
}

.resultados td {
    background-color: #2a2a2a;
    color: #f5f5f5;
}

/* Informações acima da Tabela */
.informacoes-tabela {
    margin-top: 20px;
    color: #f5f5f5;
    font-size: 16px;
    text-align: left;
}

.informacoes-tabela p {
    font-weight: 500;
}

/* Tabela de Progresso */
.tabela-container {
    margin-top: 30px;
    display: none;
    text-align: left;
    width: 100%;
}

#tabelaProgresso {
    width: 100%;
    border-collapse: collapse;
}

#tabelaProgresso th, #tabelaProgresso td {
    padding: 10px;
    border: 1px solid #444;
    text-align: center;
}

#tabelaProgresso th {
    background-color: #333;
    color: #28a745;
}

#tabelaProgresso td {
    background-color: #2a2a2a;
    color: #f5f5f5;
}

/* Gráfico */
.grafico-container {
    margin-top: 30px;
    max-width: 100%;
    display: block;
}

canvas {
    width: 100%;
    height: 300px;
}

/* Informações adicionais */
.informacoes {
    margin-top: 40px;
    text-align: center;
}

.informacoes h2 {
    font-size: 24px;
    margin-bottom: 10px;
}

.informacoes p {
    font-size: 18px;
    margin-bottom: 20px;
}

.botao-corretoras {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.botao-corretoras .btn {
    background: transparent;
    border: 2px solid #28a745;
    color: #28a745;
    padding: 10px 30px;
}

.botao-corretoras .btn:hover {
    background-color: #28a745;
    color: #fff;
}

/* Responsividade */
@media (max-width: 600px) {
    h1 {
        font-size: 50px;
    }

    input, button {
        font-size: 14px;
    }

    .botao-corretoras {
        flex-direction: column;
    }
}
