/* style.css */

/* Base Styles */
body {
    font-family: 'Poppins', Arial, sans-serif; /* Uma fonte mais moderna, você pode linkar do Google Fonts */
    background-color: #f0f2f5; /* Um cinza claro e suave */
    color: #333;
    margin: 0;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: flex-start; /* Alinha o conteúdo no topo da página */
    min-height: 100vh;
    box-sizing: border-box; /* Inclui padding e border na largura/altura */
}

/* Main Container */
.container {
    background-color: #939fd3;
    padding: 30px; /* Aumentado para melhor espaçamento */
    border-radius: 12px; /* Mais arredondado */
    box-shadow: 0 8px 25px rgba(0,0,0,0.1); /* Sombra mais suave e espalhada */
    max-width: 900px; /* Ajuste para o banner e conteúdo */
    width: 100%;
    box-sizing: border-box;
}

/* Headings */
h1 {
    color: #2c3e50; /* Azul escuro, quase preto */
    text-align: center;
    margin-bottom: 15px;
    font-size: 2.5em; /* Tamanho maior para o título principal */
}

h2, h3 {
    color: #34495e; /* Um tom de azul escuro */
    margin-top: 25px;
    border-bottom: 1px solid #eee; /* Linha sutil para separar */
    padding-bottom: 5px;
    font-size: 1.6em; /* Tamanho ajustado */
}

/* Paragraphs */
p {
    text-align: center;
    margin-bottom: 25px;
    line-height: 1.6;
}

/* Input Group */
.input-group {
    margin-bottom: 18px;
    display: flex;
    flex-direction: column;
}

.input-group label {
    margin-bottom: 8px;
    font-weight: bold;
    color: #555;
    text-align: left; /* Alinha o label à esquerda */
}

.input-group input[type="number"] {
    width: calc(100% - 20px); /* Ajuste para padding */
    padding: 12px 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1em;
    box-sizing: border-box;
    transition: border-color 0.3s ease;
}

.input-group input[type="number"]:focus {
    border-color: #007bff; /* Destaca no foco */
    outline: none;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25); /* Efeito de foco mais suave */
}

/* Preset Options */
.preset-options {
    text-align: center;
    margin-bottom: 25px;
    margin-top: 20px;
}

.preset-options p {
    margin-bottom: 15px;
    font-weight: bold;
    color: #666;
    text-align: center; /* Garante que o texto de preset esteja centrado */
}

.preset-btn {
    background-color: #e9ecef; /* Um cinza mais claro */
    color: #495057; /* Texto mais escuro */
    border: 1px solid #ced4da;
    padding: 10px 18px;
    border-radius: 5px;
    cursor: pointer;
    margin: 5px;
    transition: background-color 0.3s ease, border-color 0.3s ease, transform 0.2s ease;
}

.preset-btn:hover {
    background-color: #dee2e6;
    border-color: #adb5bd;
    transform: translateY(-2px); /* Pequeno efeito de elevação */
}

/* Button Group */
.button-group {
    text-align: center;
    margin-top: 30px;
    margin-bottom: 30px;
}

#calcularBtn, .secondary-btn {
    padding: 14px 28px;
    border: none;
    border-radius: 7px;
    cursor: pointer;
    font-size: 1.1em;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.2s ease;
    margin: 0 10px;
}

#calcularBtn {
    background-color: #28a745; /* Verde para calcular */
    color: white;
}

#calcularBtn:hover {
    background-color: #218838;
    transform: translateY(-2px);
}

.secondary-btn {
    background-color: #6c757d; /* Cinza para limpar */
    color: white;
}

.secondary-btn:hover {
    background-color: #5a6268;
    transform: translateY(-2px);
}

/* Result Area */
.result-area {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.result-area p {
    text-align: left; /* Ajuste para parágrafos de resultado */
    font-size: 1.1em;
    margin-bottom: 10px;
    color: #444;
}

.result-area span {
    font-weight: bold;
    color: #007bff; /* Destaca os valores */
}

/* Table */
.table-container {
    overflow-x: auto; /* Permite rolagem horizontal em telas pequenas */
    margin-top: 20px;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

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

th {
    background-color: #f8f9fa;
    color: #495057;
    font-weight: bold;
    white-space: nowrap; /* Evita que o texto do cabeçalho quebre */
}

tbody tr:nth-child(even) {
    background-color: #fcfcfc; /* Zebra striping para a tabela */
}

/* PROMO SECTION (Banner com texto, sem imagem) */
.promo-section {
    background-color: #2c3e50; /* Fundo escuro para contraste */
    color: white;
    padding: 40px 20px;
    margin: 30px auto;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
    max-width: 800px; /* Largura máxima, pode ajustar */
    box-sizing: border-box;
}

.promo-title {
    color: #e6e6e6; /* Um branco suave */
    font-size: 2.2em; /* Tamanho maior */
    margin-bottom: 15px;
    font-weight: bold;
    letter-spacing: 1px;
}

.promo-description {
    color: #cccccc;
    font-size: 1.2em;
    margin-bottom: 25px;
    line-height: 1.5;
}

.promo-button.large {
    padding: 18px 35px; /* Botão maior */
    font-size: 1.3em; /* Texto maior no botão */
    background-color: #28a745; /* Verde vibrante */
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    display: inline-block; /* Garante que o padding funcione */
}

.promo-button.large:hover {
    background-color: #218838;
    transform: translateY(-3px);
}


/* Media Queries para Responsividade */
@media (max-width: 768px) {
    .container {
        padding: 20px;
        margin: 10px; /* Menos margem em telas pequenas */
    }
    h1 {
        font-size: 2em;
    }
    h2, h3 {
        font-size: 1.4em;
    }
    .preset-btn, #calcularBtn, .secondary-btn {
        padding: 10px 15px;
        font-size: 0.9em;
        margin: 5px;
    }
    table {
        font-size: 0.85em; /* Texto menor na tabela */
    }
    th, td {
        padding: 8px;
    }
    .promo-title {
        font-size: 1.8em;
    }
    .promo-description {
        font-size: 1em;
    }
    .promo-button.large {
        padding: 15px 30px;
        font-size: 1.1em;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.7em;
    }
    h2, h3 {
        font-size: 1.2em;
    }
    .promo-title {
        font-size: 1.5em;
    }
    .promo-section {
        padding: 30px 15px;
        margin: 20px auto;
    }
    .promo-button.large {
        width: 90%; /* Ocupa quase a largura total em mobile */
        display: block;
        margin: 20px auto 0 auto;
    }
    .button-group button {
        display: block; /* Botões empilhados */
        width: 100%;
        margin-bottom: 10px;
    }
    .button-group button:last-child {
        margin-bottom: 0;
    }
    .preset-btn {
        display: block;
        width: 100%;
        margin: 8px 0;
    }
}

/* Se você for usar uma fonte do Google Fonts como 'Poppins', adicione isso no seu <head> do index.html */
/* <link href="https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&display=swap" rel="stylesheet"> */