/* General Styles */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background: #f4f4f4;
}

.calculator-container {
    display: flex;
    justify-content: space-between;
    max-width: 900px;
    margin: auto;
    gap: 20px;
    padding: 20px;
}

/* Calculator Box */
.calculator-box {
    background: white;
    padding: 20px;
    border-radius: 10px;
    width: 45%;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

/* Form Styles */
.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;
}

/* Buttons */
.button-row {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
    gap: 10px; /* Add spacing between buttons */
    flex-wrap: wrap; /* Ensures buttons stay in a row on small screens */
}
button {
    padding: 10px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    flex: 1; /* Ensures equal width */
    min-width: 120px; /* Prevents buttons from shrinking too much */
    text-align: center;
}

#calculateBtn, #resetBtn {
    background: #FF8D48;
    color: white;
    width: 48%;
}
#assumptionBtn, #printBtn {
    background: #FF8D48;
    color: white;
    width: 48%;
}

/* Chart Section */
.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);
    position: relative;
}
.chart-container canvas {
    width: 100% !important;
    height: 300px !important;
}

/* 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;
}


.loan-fee-container {
    display: flex;
    border: 1px solid #ccc;
    border-radius: 5px;
    overflow: hidden;
    width: 250px;
}

.loan-fee-container input {
    flex: 1;
    border: none;
    padding: 8px;
    font-size: 16px;
    text-align: left;
}

.loan-fee-container select {
    border: none;
    padding: 8px;
    font-size: 16px;
    background: #f9f9f9;
    cursor: pointer;
}

.result-container p
{
    font-size: 16px;
    font-weight: 600;
    margin: 5px 0;
    color: #FF8D48;
}


/* Responsive Design */
@media (max-width: 768px) {
    .calculator-container {
        flex-direction: column;
    }
    .calculator-box, .chart-container {
        width: 100%;
    }
}

