/* style.css */
/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: #f5f7fa;
    padding: 20px;
}

.emi-calculator {
    max-width: 1200px;
    margin: 2rem auto;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    overflow: hidden;
}

.calculator-header {
    padding: 2rem;
    background: #2c3e50;
    color: white;
    text-align: center;
}

.calculator-header h1 {
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
}

.input-section {
    padding: 2rem;
    background: white;
}

.input-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.8rem;
    font-weight: 600;
    color: #34495e;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.input-range {
    display: flex;
    gap: 1rem;
    align-items: center;
}

input[type="number"] {
    width: 150px;
    padding: 0.8rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
}

input[type="range"] {
    flex: 1;
    height: 6px;
    background: #e0e0e0;
    border-radius: 5px;
    outline: none;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    background: #3498db;
    border-radius: 50%;
    cursor: pointer;
}

.tenure-toggle {
    display: inline-flex;
    background: #f0f0f0;
    border-radius: 8px;
    margin-left: auto;
}

.tenure-toggle button {
    padding: 0.5rem 1rem;
    border: none;
    background: none;
    cursor: pointer;
    font-weight: 600;
}

.tenure-toggle button.active {
    background: #3498db;
    color: white;
    border-radius: 6px;
}

.results-section {
    padding: 2rem;
    background: #f8f9fa;
    display: grid;
    gap: 2rem;
}

.results-card {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.result-item {
    display: flex;
    justify-content: space-between;
    margin: 1rem 0;
    padding: 0.8rem 0;
    border-bottom: 1px solid #eee;
}

.total-payable {
    color: #27ae60;
    font-weight: bold;
    font-size: 1.1rem;
}

.dealer-offers {
    background: #fff8e1;
    padding: 1.5rem;
    border-radius: 12px;
}

.action-buttons {
    text-align: center;
    margin-top: 2rem;
}

#reset-btn {
    background: #e74c3c;
    color: white;
    padding: 0.8rem 2rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s;
}

#reset-btn:hover {
    background: #c0392b;
}

/* Responsive Design */
@media (max-width: 768px) {
    .calculator-body {
        grid-template-columns: 1fr;
    }
    
    .input-range {
        flex-direction: column;
    }
    
    input[type="number"] {
        width: 100%;
    }
}