/* Estilos gerais da página */
body {
    font-family: sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    color: #333;
}

header, footer {
    background: #333;
    color: #fff;
    text-align: center;
    padding: 1rem 0;
}

main {
    padding: 1rem;
    min-height: 80vh;
}

#data-input, #output {
    background: #fff;
    padding: 1.5rem;
    margin-bottom: 1rem;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

textarea {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #ddd;
    padding: 8px;
    border-radius: 4px;
    margin-bottom: 1rem;
}

.controls {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 1.5rem;
    margin-top: 1rem;
}

.controls > div {
    display: flex;
    flex-direction: column;
}

.controls label {
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
    color: #555;
}

.controls select, .controls button {
    padding: 8px;
    border-radius: 4px;
    border: 1px solid #ccc;
}

button {
    background: #337ab7;
    color: white;
    padding: 10px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
}

button:hover {
    background: #286090;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

th, td {
    padding: 12px;
    border: 1px solid #ddd;
    text-align: left;
}

thead {
    background-color: #f2f2f2;
}

tbody tr:nth-child(even) {
    background-color: #f9f9f9;
}

#stats-container {
    display: flex;
    justify-content: space-around;
    padding: 1rem;
    background-color: #f2f2f2;
    border-radius: 5px;
    margin-bottom: 1rem;
}

.stat {
    text-align: center;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: bold;
    color: #337ab7;
}

.stat-label {
    font-size: 0.9rem;
    color: #666;
}

.output-actions {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    margin-bottom: 1rem;
}

.output-actions button {
    background-color: #5cb85c;
}

.output-actions button:hover {
    background-color: #4cae4c;
}