.debt-calculator-container {
    max-width: 1200px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.debt-inputs {
    background-color: #fff !important;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1) !important;
}

.debt-inputs h2 {
    color: #333 !important;
}

.debt-rows {
    margin-bottom: 20px;
}

.debt-row {
    display: grid;
    grid-template-columns: 2fr 2fr 2fr 2fr 0.5fr;
    gap: 10px;
    margin-bottom: 10px;
    align-items: center;
    background-color: #ffffff !important;
    border: 0px solid #eee !important;
    border-radius: 5px;
}

.debt-row select,
.debt-row input {
    padding: 8px;
    border: 1px solid #ddd !important;
    border-radius: 4px;
    width: 94%;
    background-color: #fff !important;
}

.debt-row select:focus,
.debt-row input:focus {
    outline: none;
    border-color: #2196F3 !important;
    box-shadow: 0 0 0 2px rgba(33, 150, 243, 0.1) !important;
}

.calculator-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.add-debt-btn {
    background-color: #4CAF50 !important;
    color: white !important;
    border: none !important;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
}

.add-debt-btn:hover {
    background-color: #43A047 !important;
}

.remove-debt-btn {
    background-color: #ff5252 !important;
    color: white !important;
    border: none !important;
    border-radius: 50% !important;
    width: 30px !important;
    height: 30px !important;
    padding: 0 !important;
    margin-left: 10px !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 18px !important;
    line-height: 1 !important;
}

.remove-debt-btn:hover {
    background-color: #ff1744 !important;
}

.debt-row:first-child .remove-debt-btn {
    display: none !important;
}

.additional-payment {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-grow: 1;
}

.additional-payment label {
    white-space: nowrap;
    color: #666 !important;
}

.additional-payment input {
    padding: 8px;
    border: 1px solid #ddd !important;
    border-radius: 4px;
    width: 150px;
    background-color: #fff !important;
}

.additional-payment input:focus {
    outline: none;
    border-color: #2196F3 !important;
    box-shadow: 0 0 0 2px rgba(33, 150, 243, 0.1) !important;
}

.calculate-btn {
    background-color: #2196F3 !important;
    color: white !important;
    border: none !important;
    padding: 10px 24px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
}

.calculate-btn:hover {
    background-color: #1E88E5 !important;
}

/* Graph styles */
.graph-section,
.detailed-results {
    display: none; /* Hide initially */
}

.graph-section.visible,
.detailed-results.visible {
    display: block;
}

.graph-container {
    padding: 20px;
}

.graph-container h3 {
    margin-bottom: 20px;
    color: #333 !important;
    border-bottom: 2px solid #2196F3;
    padding-bottom: 10px;
}

.graph-wrapper {
    position: relative;
    width: 100%;
    height: 400px;
    margin: 20px 0;
    padding: 10px;
}

#debtPayoffChart {
    width: 100% !important;
    height: 100% !important;
}

/* Results styles */

.results-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
    padding: 20px;
}

.results-table th,
.results-table td {
    padding: 12px 20px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.results-table th {
    background-color: #f8f9fa;
    font-weight: bold;
    color: #333 !important;
}

.results-table tr:hover {
    background-color: #f5f5f5;
}

.min-payments-details,
.current-payments-details,
.snowball-details,
.avalanche-details,
.consolidation-details,
.consolidation-snowball-details {
    margin: 20px;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 8px;
}

.min-payments-details h4,
.current-payments-details h4,
.snowball-details h4,
.avalanche-details h4,
.consolidation-details h4,
.consolidation-snowball-details h4 {
    margin: 0 0 15px;
    color: #333 !important;
}

.min-payments-details-table,
.current-payments-details-table,
.snowball-details-table,
.avalanche-details-table,
.consolidation-details-table,
.consolidation-snowball-details-table {
    width: 100%;
    border-collapse: collapse;
}

.min-payments-details-table td,
.current-payments-details-table td,
.snowball-details-table td,
.avalanche-details-table td,
.consolidation-details-table td,
.consolidation-snowball-details-table td {
    padding: 12px 0;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.min-payments-details-table tr:last-child td,
.current-payments-details-table tr:last-child td,
.snowball-details-table tr:last-child td,
.avalanche-details-table tr:last-child td,
.consolidation-details-table tr:last-child td,
.consolidation-snowball-details-table tr:last-child td {
    border-bottom: none;
}

.interest-rate-warning {
    margin: 20px;
    padding: 15px;
    background-color: #fff3cd;
    border: 1px solid #ffeeba;
    border-radius: 4px;
    color: #856404;
    display: none;
}

.interest-rate-warning strong {
    color: #664d03;
    display: block;
    margin-bottom: 5px;
}

.method-explanation {
    color: #666 !important;
    font-size: 0.95em;
    line-height: 1.5;
    margin: 15px 0;
    padding: 0 10px;
}

.apply-btn {
    background-color: #2196F3 !important;
    color: white !important;
    border: none !important;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    margin: 10px 0 20px;
    transition: background-color 0.3s ease;
}

.apply-btn:hover {
    background-color: #1E88E5 !important;
}

.result-section {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    padding: 20px;
}

.result-section h3 {
    color: #333 !important;
    margin-top: 0;
    margin-bottom: 15px;
    padding: 0 0 10px 0;
    border-bottom: 2px solid #eee;
}

@media (max-width: 768px) {
    .debt-row {
        grid-template-columns: 1fr;
        gap: 5px;
    }

    .calculator-controls {
        flex-direction: column;
        align-items: stretch;
    }

    .additional-payment {
        flex-direction: column;
        align-items: stretch;
    }

    .additional-payment input {
        width: 100%;
    }

    .graph-wrapper {
        height: 300px;
    }

    .results-table,
    .consolidation-details-table,
    .snowball-details-table {
        display: block;
        overflow-x: auto;
    }
}
