body {
    font-family: Arial, sans-serif;
    background: #f4f4f4;
    margin: 0;
    padding: 0;
}

.calculator-container {
    display: flex;
    justify-content: space-between;
    max-width: 900px;
    margin: auto;
    gap: 20px;
    padding: 20px;
}

.calculator-box {
    background: white;
    padding: 20px;
    border-radius: 10px;
    width: 45%;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.chart-container {
    background: white;
    padding: 20px;
    border-radius: 10px;
    width: 45%;
    height: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.form-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.form-row label {
    width: 50%;
}

.form-row input, .form-row select {
    width: 45%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.button-row {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
}

button {
    padding: 10px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

#calculateBtn, #resetBtn {
    background: #FF8D48;
    color: white;
    width: 48%;
}

.chart-buttons {
    display: flex;
    justify-content: space-between;
    width: 100%;
    margin-top: 20px;
}

.chart-buttons button
{
     background-color: #FF8D48;
     color:#ffffff;
}

.result-container {
    background: white;
    padding: 10px;
    border-radius: 10px;
    margin-top: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.result-container p
{
    font-size: 15px;
    font-weight: 600;
    margin: 8px 0;
    color: #FF8D48;
}
/* Fix for buttons */
#loanChartContainer {
    padding-bottom: 20px; /* Extra space for the graph */
}

#loanChartButtons {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
    padding: 10px;
}

#loanChartButtons button {
    background-color: white;
    border: 1px solid #ccc;
    padding: 10px 15px;
    font-size: 14px;
    cursor: pointer;
    border-radius: 5px;
    transition: all 0.3s ease-in-out;
}

#loanChartButtons button:hover {
    background-color: #f0f0f0;
}

/* Fix for graph cut-off */
#loanChart {
    height: 350px !important;  /* Adjust height */
    max-height: 100%;
}


/* Responsive */
@media (max-width: 768px) {
    .calculator-container {
        flex-direction: column;
    }
    .calculator-box, .chart-container {
        width: 100%;
    }
}

/* Note Section */
.calculator-note {
    text-align: center;
    font-size: 12px;
    margin-top: 20px;
    color: #555;
}

.calculator-note {
    background: #f8f9fa;
    border: 1px solid #ddd;
    padding: 15px;
    border-radius: 5px;
    text-align: center;
    font-size: 14px;
    color: #555;
    max-width: 90%;
    margin: 20px auto;
}