* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.c-matter--article .c-matter__body {
    width: 1000px;
}
@media (max-width: 1200px) {
    .c-matter--article .c-matter__body {
        width: 100%;
    }
}

.roth401k-container {
    max-width: 1200px;
    margin: 0 auto;
    /* background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1); */
    overflow: hidden;
}

.roth401k-calculator-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    padding: 40px;
}

.roth401k-section {
    background: #f7fafc;
    border: 2px solid #f3f4f6;
    border-radius: var(--radius-lg);
    padding: 24px;
    margin: 0;
    box-shadow: none;
}

.roth401k-section h2 {
    margin-bottom: 25px;
    color: #2d3748;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 10px;
}

.roth401k-input-group {
    margin-bottom: 25px;
}

.roth401k-input-group label {
    display: block;
    margin-bottom: 8px;
    color: #4a5568;
}

.roth401k-slider-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.roth401k-slider-header label {
    margin-bottom: 0;
}

.roth401k-value-display {
    padding: 8px 12px;
    background-color: #f5f5f5;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    min-width: 100px;
    text-align: center;
    outline: none;
    width: 40%;
}

.roth401k-value-display:focus {
    border-color: #18b981;
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.1);
}

.roth401k-slider {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: #e0e0e0;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    margin: 15px 0;
    position: relative;
}

.roth401k-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: white;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    border: 1px solid #ddd;
    margin-top: -7px;
}

.roth401k-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: white;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    border: 1px solid #ddd;
    box-sizing: border-box;
}

.roth401k-slider::-webkit-slider-runnable-track {
    width: 100%;
    height: 6px;
    cursor: pointer;
    background: linear-gradient(to right, #18b981 0%, #18b981 var(--slider-progress, 0%), #e0e0e0 var(--slider-progress, 0%), #e0e0e0 100%);
    border-radius: 3px;
}

.roth401k-slider::-moz-range-track {
    width: 100%;
    height: 6px;
    cursor: pointer;
    background: #e0e0e0;
    border-radius: 3px;
}

.roth401k-slider::-moz-range-progress {
    background: #18b981;
    height: 6px;
    border-radius: 3px;
}

.roth401k-slider-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 5px;
    color: #666;
}

.roth401k-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.roth401k-currency {
    position: absolute;
    left: 12px;
    z-index: 1;
    color: #718096;
}

.roth401k-percent {
    position: absolute;
    right: 12px;
    z-index: 1;
    color: #718096;
}

.roth401k-arrow {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1;
    color: #4a5568;
    pointer-events: none;
    font-size: 12px;
    line-height: 1;
}

.roth401k-input-wrapper input {
    width: 100%;
    padding: 12px 15px 12px 30px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    transition: all 0.3s ease;
    background: white;
}

.roth401k-input-wrapper select {
    width: 100%;
    padding: 12px 35px 12px 15px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    transition: all 0.3s ease;
    background: white;
}

.roth401k-input-wrapper:has(.roth401k-percent) input {
    padding: 12px 30px 12px 15px;
}

.roth401k-input-wrapper input:focus,
.roth401k-input-wrapper select:focus {
    outline: none;
    border-color: #18b981;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.roth401k-select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    cursor: pointer;
}

.roth401k-results {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.roth401k-result-card {
    background: white;
    border-radius: 8px;
    padding: 25px;
    border-left: 4px solid #18b981;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.roth401k-result-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.roth401k-result-card.roth401k-roth {
    border-left-color: #48bb78;
}

.roth401k-result-card.roth401k-traditional {
    border-left-color: #4299e1;
}

.roth401k-result-card.roth401k-after-tax {
    border-left-color: #ed8936;
    margin-bottom: 25px;
}

.roth401k-result-label {
    color: #718096;
    margin-bottom: 8px;
}

.roth401k-result-value {
    /* color: #2d3748; */
    font-weight: bold;
    font-size: 1.6rem;
}

.roth401k-result-value .roth401k-currency-symbol {
    margin-right: 5px;
}

.roth401k-buttons {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.roth401k-reset-button, .roth401k-download-button {
    width: 100%;
}

@media (max-width: 768px) {
    .roth401k-calculator-content {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 0;
    }

    .roth401k-section {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    body {
        padding: 10px;
    }
}

