/* Enhanced Budget Calculator Component */

.enhanced-budget-calculator {
    background: #fef3c7;
    border: 1px solid #d97706;
    border-radius: 6px;
    padding: 12px;
    margin: 8px 0;
}

.budget-header h4 {
    margin: 0 0 6px 0;
    color: #92400e;
    font-size: 1rem;
}

.payment-options {
    display: flex;
    gap: 4px;
    margin-bottom: 8px;
}

.payment-option-btn {
    padding: 4px 12px;
    border: 1px solid #d97706;
    background: white;
    border-radius: 4px;
    font-size: 0.8rem;
    transition: all 0.2s;
}

.payment-option-btn.active {
    background: #d97706;
    color: white;
}

.input-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    flex-wrap: nowrap;
}

.input-row label {
    font-weight: 600;
    color: #92400e;
    font-size: 0.85rem;
    min-width: 70px;
    margin-right: 4px;
}

.slider-container {
    flex: 1;
    min-width: 150px;
}

.slider-container input[type="range"] {
    width: 100%;
    height: 6px;
    background: #475569;
    border-radius: 3px;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

.slider-container input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    background: #d97706;
    border-radius: 50%;
    cursor: pointer;
}

.slider-container input[type="range"]::-moz-range-thumb {
    width: 16px;
    height: 16px;
    background: #d97706;
    border-radius: 50%;
    cursor: pointer;
    border: none;
}

.slider-labels {
    display: flex;
    justify-content: space-between;
    font-size: 10px;
    color: #6b7280;
    margin-top: 2px;
}

.rate-display {
    font-weight: bold;
    color: #7c3aed;
    font-size: 0.8rem;
    margin-left: 8px;
}

.down-payment-type {
    display: flex;
}

.down-type-btn {
    padding: 4px 8px;
    border: 1px solid #d97706;
    background: white;
    font-size: 0.75rem;
}

.down-type-btn:first-child {
    border-radius: 3px 0 0 3px;
}

.down-type-btn:last-child {
    border-radius: 0 3px 3px 0;
    border-left: none;
}

.down-type-btn.active {
    background: #d97706;
    color: white;
}

.input-row input[type="number"], 
.input-row input[type="text"] {
    padding: 4px 8px;
    border: 1px solid #d97706;
    border-radius: 3px;
    width: 100px;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.input-row input[type="number"] {
    width: 60px;
}

.input-row select {
    padding: 4px 8px;
    border: 1px solid #d97706;
    border-radius: 3px;
    background: white;
    font-size: 0.85rem;
    width: 70px;
    flex-shrink: 0;
}

.calculation-summary {
    background: rgba(255, 255, 255, 0.9);
    padding: 8px;
    border-radius: 4px;
    margin: 8px 0;
    font-size: 0.85rem;
    color: #92400e;
    border: 1px solid #f59e0b;
}

.budget-actions {
    text-align: center;
    margin-top: 8px;
}

.confirm-budget-btn {
    background: #d97706;
    color: white;
    padding: 6px 16px;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 600;
}

.confirm-budget-btn:hover:not(:disabled) {
    background: #b45309;
}

.confirm-budget-btn:disabled {
    background: #9ca3af;
    cursor: not-allowed;
}