/* AMCE Dark Mode Styles */
.amce-mortgage-calculator-wrapper.amce-dark-mode {
    background-color: #2c3338; /* Dark background */
    border-color: #454f57;
    color: #c8d2dc; /* Light text */
}

.amce-mortgage-calculator-wrapper.amce-dark-mode .amce-calculator-heading {
    color: #e4e8ec;
}

.amce-mortgage-calculator-wrapper.amce-dark-mode .amce-input-section,
.amce-mortgage-calculator-wrapper.amce-dark-mode .amce-qualification-estimator-section,
.amce-mortgage-calculator-wrapper.amce-dark-mode .amce-results-section,
.amce-mortgage-calculator-wrapper.amce-dark-mode .amce-graph-section,
.amce-mortgage-calculator-wrapper.amce-dark-mode .amce-amortization-section {
    border-color: #4a555f;
}

.amce-mortgage-calculator-wrapper.amce-dark-mode .amce-qualification-estimator-section h3,
.amce-mortgage-calculator-wrapper.amce-dark-mode .amce-results-section h3,
.amce-mortgage-calculator-wrapper.amce-dark-mode .amce-graph-section h3,
.amce-mortgage-calculator-wrapper.amce-dark-mode .amce-amortization-section h3 {
    color: #d1d9e0;
    border-bottom-color: #4a555f;
}

.amce-mortgage-calculator-wrapper.amce-dark-mode .amce-input-group label {
    color: #b0bac4;
}

.amce-mortgage-calculator-wrapper.amce-dark-mode .amce-input-group input[type="number"],
.amce-mortgage-calculator-wrapper.amce-dark-mode .amce-input-group input[type="text"],
.amce-mortgage-calculator-wrapper.amce-dark-mode .amce-input-group select {
    background-color: #3a4248;
    border-color: #566069;
    color: #e4e8ec;
}
.amce-mortgage-calculator-wrapper.amce-dark-mode .amce-input-group input::placeholder,
.amce-mortgage-calculator-wrapper.amce-dark-mode .amce-input-group select/*::placeholder (not standard for select)*/
{
    color: #88929b;
}


.amce-mortgage-calculator-wrapper.amce-dark-mode .amce-input-group input:focus,
.amce-mortgage-calculator-wrapper.amce-dark-mode .amce-input-group select:focus {
    border-color: #4f9bcf; /* Lighter blue for dark mode focus */
    box-shadow: 0 0 0 1px #4f9bcf;
}

.amce-mortgage-calculator-wrapper.amce-dark-mode .amce-results-section {
    background-color: #384047;
     border-color: #4a555f;
}
.amce-mortgage-calculator-wrapper.amce-dark-mode .amce-result-item {
    border-bottom-color: #4a555f;
}
.amce-mortgage-calculator-wrapper.amce-dark-mode .amce-result-item .amce-label {
    color: #b8c0c9;
}
.amce-mortgage-calculator-wrapper.amce-dark-mode .amce-result-item .amce-value {
    color: #7cc0ff; /* Lighter blue for values */
}


.amce-mortgage-calculator-wrapper.amce-dark-mode .amce-amortization-table th,
.amce-mortgage-calculator-wrapper.amce-dark-mode .amce-amortization-table td {
    border-color: #4a555f;
}
.amce-mortgage-calculator-wrapper.amce-dark-mode .amce-amortization-table thead th {
    background-color: #3e464d;
    color: #e4e8ec;
}
.amce-mortgage-calculator-wrapper.amce-dark-mode .amce-amortization-table tbody tr:nth-child(even) {
    background-color: #333a40;
}
.amce-mortgage-calculator-wrapper.amce-dark-mode .amce-amortization-table tbody tr:nth-child(odd) {
    background-color: #2c3338; /* Slightly different for odd rows if desired */
}

/* Dark mode switch itself, if needed */
.amce-mortgage-calculator-wrapper.amce-dark-mode .amce-dark-mode-toggle-container span {
    color: #b0bac4;
}
.amce-mortgage-calculator-wrapper.amce-dark-mode .amce-slider {
    background-color: #555; /* Darker inactive switch */
}
.amce-mortgage-calculator-wrapper.amce-dark-mode input:checked + .amce-slider {
    background-color: #4f9bcf; /* Lighter blue active switch */
}