body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
    color: #333;
    margin: 0;
    padding: 20px;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    background-color: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

h1 {
    text-align: center;
    color: #ffffff;
    margin-bottom: 30px;
    background-color: #343a40;
    padding: 15px;
    border-radius: 5px;
}

.input-section {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 15px;
    margin-bottom: 30px;
}

.input-section label {
    font-weight: bold;
    align-self: center;
}

.input-section select,
.input-section input[type="number"] {
    padding: 10px;
    border: 1px solid #ced4da;
    border-radius: 5px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.input-section select:focus,
.input-section input[type="number"]:focus {
    border-color: #007bff;
    outline: none;
}

.results-section {
    background-color: #f1f3f5;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
}

.results-section h2 {
    text-align: center;
    margin-bottom: 20px;
    color: #495057;
}

.result-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 16px;
}

.result-item span:first-child {
    font-weight: bold;
}

.final {
    font-size: 18px;
    font-weight: bold;
    color: #007bff;
}

.chart-section {
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

#pieChart {
    max-height: 300px;
}

@media (max-width: 600px) {
    .input-section {
        grid-template-columns: 1fr;
    }
}