body {
    font-family: Arial, sans-serif;
    background-color: #f4f7f6;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
}

.container {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    width: 90%;
    max-width: 900px;
    text-align: center;
}

h1 {
    color: #333;
    margin-bottom: 20px;
}

.main-content {
    display: flex;
    justify-content: space-between;
    gap: 30px;
}

.input-section, .results-section {
    flex: 1;
    text-align: left;
}

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

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

.input-group input {
    width: 100%;
    padding: 10px;
    box-sizing: border-box;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
}

button {
    width: 100%;
    padding: 12px;
    background-color: #28a745;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 18px;
    cursor: pointer;
    margin-top: 10px;
}

button:hover {
    background-color: #218838;
}

.results-section {
    border: 1px solid silver;
    padding: 20px;
    border-radius: 8px;
}

.results-section h2 {
    color: #333;
    margin-bottom: 15px;
}

.results-section p { 
    margin: 10px 0;
    font-size: 16px;
}

.results-section strong {
    color: #000;
}

.status-button {
    display: inline-block;
    padding: 8px 15px;
    border-radius: 20px;
    color: white;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 14px;
    margin-left: 10px;
    min-width: 120px;
    text-align: center;
}

/* --- Estilos da Tabela de Histórico --- 
Este bloco foi reorganizado para garantir que as bordas sejam exibidas corretamente.
*/
#historico {
    margin-top: 20px;
    border-top: 1px solid #ccc;
    padding-top: 20px;
}

#historico h3 {
    text-align: center;
    margin-bottom: 10px;
}

#historico table {
    width: 100%;
    border-collapse: collapse;
}

#historico th, #historico td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: center;
}

#historico th {
    background-color: #f2f2f2;
    color: #555;
    font-weight: bold;
}

/* --- Media Query para Telas Menores (Celular) --- */
@media (max-width: 768px) {
    .container {
        padding: 20px;
        width: 95%;
    }

    .main-content {
        flex-direction: column;
        gap: 20px;
    }

    .input-group {
        margin-bottom: 10px;
    }

    .results-section {
        margin-top: 10px;
    }

    .status-button {
        display: block;
        margin-left: 0;
        margin-top: 10px;
    }
}