.amortization-calculator-container {
    font-family: Arial, sans-serif;
    margin: 20px 0;
    color: #333;
    width: 700px;
}

.amortization-calculator-container h1 {
    text-align: center;
    margin-bottom: 30px;
    color: #2c3e50;
}

.amortization-calculator-container h3 {
    color: #2c3e50;
    margin-bottom: 15px;
}

.calculator {
    display: flex;
    gap: 40px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.input-section {
    flex: 1;
    border: 1px solid #ddd;
    padding: 20px;
    border-radius: 5px;
    /*background: #f9f9f9;*/
    min-width: 300px;
}

.result-section {
    flex: 1;
    border: 1px solid #ddd;
    padding: 20px;
    border-radius: 5px;
    background: #fff;
    min-width: 300px;
	width: 600px;
}

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

.amortization-calculator-container label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #555;
}

.amortization-calculator-container input,
.amortization-calculator-container select {
    width: 100px;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 14px;
}

.amortization-calculator-container input:focus,
.amortization-calculator-container select:focus {
    border-color: #4CAF50;
    outline: none;
    box-shadow: 0 0 5px rgba(76, 175, 80, 0.3);
}

.inline-inputs {
    display: flex;
    gap: 10px;
}

.inline-inputs > div {
    flex: 1;
}

.inline-inputs label {
    font-size: 12px;
    font-weight: normal;
    margin-top: 5px;
}

.buttonsamor {
    /*display: flex;*/
    gap: 10px;
    margin-top: 20px;
}

.amortization-calculator-container button {
    padding: 12px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    font-size: 14px;
    transition: background-color 0.3s;
    flex: 1;
}

.calculate-btn {
    background-color: #4CAF50;
    color: white;
}

.calculate-btn:hover {
    background-color: #45a049;
}

.clear-btn {
    background-color: #f44336;
    color: white;
}

.clear-btn:hover {
    background-color: #da190b;
}

.export-btn {
    background-color: #2196F3;
    color: white;
    padding: 10px 20px;
    margin-top: 15px;
}

.export-btn:hover {
    background-color: #0b7dda;
}

.payment-summary {
    margin-bottom: 20px;
    padding: 15px;
    background-color: #f9f9f9;
    border-radius: 5px;
    text-align: center;
}

.payment-summary h3 {
    margin-top: 0;
    color: #555;
    
}

#monthly-payment {
    font-size: 24px;
    font-weight: bold;
    color: #4CAF50;
}

.total-summary {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #ddd;
}

.total-summary > div {
    text-align: center;
}

.total-summary > div > div:first-child {
    
    color: #666;
    margin-bottom: 5px;
}

.total-summary > div > div:last-child {
    font-weight: bold;
    color: #333;
}

.schedule-section {
    margin-top: 30px;
}

.table-container {
    max-height: 500px;
    overflow-y: auto;
    border: 1px solid #ddd;
    border-radius: 5px;
    margin-bottom: 15px;
}

.amortization-calculator-container .inputtable {
    width: 600px;
    border-collapse: collapse;
    margin-top: 0;
}

.amortization-calculator-container table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 0;
}

.amortization-calculator-container th,
.amortization-calculator-container td {
    padding: 4px;
    text-align: left;
    border-bottom: 1px solid #ddd;
    white-space: nowrap;
}

.amortization-calculator-container th {
    background-color: #f2f2f2;
    font-weight: bold;
    color: #555;
    position: sticky;
    top: 0;
    z-index: 10;
}

.amortization-calculator-container tr:hover {
    background-color: #f5f5f5;
}

.export-section {
    text-align: center;
}

.hidden {
    display: none;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .calculator {
        flex-direction: column;
    }
    
    .input-section, .result-section {
        min-width: 100%;
    }
    
    .table-container {
        max-height: 400px;
    }
    
    .amortization-calculator-container th,
    .amortization-calculator-container td {
        padding: 8px;
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .inline-inputs {
        flex-direction: column;
        gap: 5px;
    }
    
    .table-container {
        max-height: 300px;
    }
    
    .amortization-calculator-container th,
    .amortization-calculator-container td {
        padding: 6px;
        font-size: 11px;
    }
}