.calculator-box {
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    max-width: 700px;
    margin: auto;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    font-family: Arial, sans-serif;
    color: #333;
}

.calculator-box h2 {
    color: #193559;
    font-size: 24px;
    margin-bottom: 20px;
    text-align: center;
}

.calculator-box label {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
    font-size: 14px;
    color: #333;
}

.calculator-box input,
.calculator-box select {
    width: calc(100% - 20px);
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 14px;
    background-color: #f9f9f9;
}

.calculator-box .input-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.calculator-box .input-group select {
    flex: 0.2;
    min-width: 80px;
    text-align: center;
}

.calculator-box button {
    background-color: #193559;
    color: white;
    padding: 10px 15px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    width: calc(50% - 5px);
}

.calculator-box button:hover {
    background-color: #235CA6;
}

.calculator-box .button-group {
    display: flex;
    justify-content: space-between;
}

#results {
    margin-top: 20px;
}

#results .result-box {
    display: flex;
    justify-content: space-around;
    gap: 20px;
    flex-wrap: wrap; /* Adicionado para responsividade */
}

.result-item {
    background-color: #193559;
    color: white;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    flex: 1 1 calc(33.333% - 10px);
    font-size: 16px;
    font-weight: bold;
    min-width: 150px;
}

.result-item span:first-child {
    display: block;
    font-size: 14px;
    color: #ddd;
}

#ci-chart {
    margin-top: 20px;
}

.results-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.results-table th,
.results-table td {
    border: 1px solid #ddd;
    padding: 10px;
    text-align: center;
    font-size: 14px;
}

.results-table th {
    background-color: #f4f4f4;
    color: #333;
}

.table-container {
    max-height: 200px;
    overflow-y: auto;
}

@media (max-width: 768px) {
    .result-box {
        flex-direction: column;
        align-items: center;
    }

    .result-item {
        width: 100%;
        margin-bottom: 10px;
    }
}
