﻿body {
    font-family: Arial, sans-serif;
    max-width: 600px;
    margin: 20px auto;
    padding: 20px;
    background-color: #ddd;
}

.form-group {
    margin-bottom: 15px;
}

label {
    display: block;
    margin-bottom: 5px;
}

input {
    padding: 8px;
    margin-bottom: 10px;
    box-sizing: border-box;
}

.loan-name input {
    width: 100%;
}

.principal-interest-container, .term-container {
    display: flex;
    flex-direction: column;
}

.principal-interest-inputs, .term-inputs {
    display: flex;
    gap: 10px;
    align-items: center;
}

    .principal-interest-inputs input {
        width: 60%;
    }

        .principal-interest-inputs input#interestRate {
            width: 40%;
        }

    .term-inputs input {
        width: 60%;
    }

    .term-inputs button {
        width: 40%;
        padding: 8px;
        background-color: #FFC107;
        color: black;
        border: none;
        cursor: pointer;
    }

        .term-inputs button:hover {
            background-color: #FFA000;
        }

button {
    padding: 10px 20px;
    margin-right: 10px;
    margin-bottom: 10px;
    color: white;
    border: none;
    cursor: pointer;
}

    button[type="submit"] {
        background-color: #4CAF50;
    }

        button[type="submit"]:hover {
            background-color: #45a049;
        }

#clearButton {
    background-color: #f44336;
}

    #clearButton:hover {
        background-color: #d32f2f;
    }

#exportButton, #amortizationButton {
    background-color: #2196F3;
}

    #exportButton:hover, #amortizationButton:hover {
        background-color: #1976D2;
    }

    #exportButton:disabled, #amortizationButton:disabled {
        background-color: #cccccc;
        cursor: not-allowed;
    }

#results {
    margin-top: 20px;
    padding: 15px;
    border: 1px solid #ccc;
    display: none;
}

#amortizationSchedule {
    margin-top: 20px;
    padding: 15px;
    border: 1px solid #ccc;
    display: none;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

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

th {
    background-color: #f2f2f2;
}

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