/* Custom Styles for Financial Calculators */

/* General Body Styles */
body {
    font-family: 'Poppins', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Chart Container */
.chart-container {
    position: relative;
    height: 250px; /* Default height for doughnut charts */
    width: 100%;
}

/* Result Total Row */
.result-total td {
    color: #10b981; /* Green color for dark and light mode */
}

.dark .result-total td {
    color: #34d399; /* A slightly lighter green for dark mode */
}

/* Amortization Table Container */
.amortization-table-container {
    max-height: 400px;
    overflow-y: auto;
}

/* Custom Range Input Styles */
input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 8px;
    background: #e5e7eb; /* gray-200 */
    border-radius: 5px;
    outline: none;
    opacity: 0.7;
    transition: opacity .2s;
}

input[type="range"]:hover {
    opacity: 1;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background: #3b82f6; /* blue-500 */
    cursor: pointer;
    border-radius: 50%;
    border: 2px solid white;
}

input[type="range"]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: #3b82f6; /* blue-500 */
    cursor: pointer;
    border-radius: 50%;
    border: 2px solid white;
}

.dark input[type="range"] {
    background: #4b5563; /* gray-600 */
}

.dark input[type="range"]::-webkit-slider-thumb {
    background: #60a5fa; /* blue-400 */
    border: 2px solid #1f2937; /* gray-800 */
}

.dark input[type="range"]::-moz-range-thumb {
    background: #60a5fa; /* blue-400 */
    border: 2px solid #1f2937; /* gray-800 */
}

/* Retirement Output Styles */
#retirementOutput .output-item {
    margin-bottom: 1.5rem;
}

#retirementOutput .output-label {
    font-size: 0.875rem; /* 14px */
    font-weight: 500;
    color: #6b7280; /* gray-500 */
    margin-bottom: 0.5rem;
}

.dark #retirementOutput .output-label {
    color: #9ca3af; /* gray-400 */
}

#retirementOutput .output-value {
    font-size: 1.875rem; /* 30px */
    font-weight: 700;
    color: #1f2937; /* gray-800 */
}

.dark #retirementOutput .output-value {
    color: #f9fafb; /* gray-50 */
}

#retirementOutput .output-value.text-green-500 {
    color: #10b981;
}

.dark #retirementOutput .output-value.text-green-500 {
    color: #34d399;
}

#amortization-body tr:nth-child(even) {
    background-color: #f9fafb;
}

.dark #amortization-body tr:nth-child(even) {
    background-color: #1f2937;
}