/* assets/css/hlc-style.css */

.hlc-container {
    padding: 20px;
    border-radius: 5px;
    background-color: #f9f9f9;
    max-width: 100%;
    margin: 20px auto;
    box-sizing: border-box;
}

.hlc-container h2, .hlc-container h3, .hlc-container h4 {
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
    margin-top: 25px;
    margin-bottom: 20px;
}

.hlc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.hlc-form-group {
    display: flex;
    flex-direction: column;
}

.hlc-form-group label {
    margin-bottom: 5px;
    font-weight: bold;
}

.hlc-form-group input {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    width: 100%;
    box-sizing: border-box;
}

.hlc-button {
    background-color: #0073aa;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1em;
    text-decoration: none;
    display: inline-block;
    margin-top: 20px;
}

.hlc-button:hover {
    background-color: #005a87;
}

#hlc-loader {
    text-align: center;
    padding: 20px;
    font-weight: bold;
}

#hlc-results {
    margin-top: 30px;
}

.hlc-summary-table, .hlc-benefits-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
    background-color: #fff;
}

.hlc-summary-table th, .hlc-summary-table td,
.hlc-benefits-table th, .hlc-benefits-table td {
    border: 1px solid #ddd;
    padding: 12px;
    text-align: left;
    vertical-align: middle;
}

.hlc-summary-table th, .hlc-benefits-table th {
    background-color: #f2f2f2;
    font-weight: bold;
}

.hlc-summary-table td:not(:first-child),
.hlc-benefits-table td:not(:first-child) {
    text-align: right;
    font-family: monospace;
}

.hlc-benefits-table .hlc-success {
    font-weight: bold;
    color: #2b822b;
}

.hlc-amortization-table-wrapper {
    max-height: 500px;
    overflow-y: auto;
    border: 1px solid #ddd;
}

.hlc-amortization-table {
    width: 100%;
    border-collapse: collapse;
}

.hlc-amortization-table th, .hlc-amortization-table td {
    padding: 8px 12px;
    border: 1px solid #ddd;
    text-align: right;
}
.hlc-amortization-table th:first-child, .hlc-amortization-table td:first-child {
    text-align: center;
}

.hlc-amortization-table thead th {
    background-color: #f2f2f2;
    position: sticky;
    top: 0;
    z-index: 1;
}

.hlc-credit-line {
    text-align: center;
    margin-top: 20px;
    font-size: 0.9em;
    color: #777;
}

.hlc-credit-line a {
    color: #0073aa;
    text-decoration: none;
}
.hlc-credit-line a:hover {
    text-decoration: underline;
}