.emi-calculator-container {
    max-width: 800px;
    margin: 0 auto;
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    padding: 30px;
    font-family: 'Segoe UI', Arial, sans-serif;
}

.emi-calculator-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
}

.emi-calculator-header h2 {
    color: #2c3e50;
    margin: 0 0 10px 0;
    font-size: 28px;
}

.emi-calculator-header p {
    color: #7f8c8d;
    margin: 0;
    font-size: 16px;
}

.input-group {
    margin-bottom: 25px;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #34495e;
    font-size: 16px;
}

.input-with-slider {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.input-with-slider input[type="number"] {
    padding: 12px 15px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    width: 100%;
    transition: border-color 0.3s;
}

.input-with-slider input[type="number"]:focus {
    border-color: #3498db;
    outline: none;
}

.input-with-slider input[type="range"] {
    width: 100%;
    height: 8px;
    -webkit-appearance: none;
    background: #ecf0f1;
    border-radius: 4px;
    outline: none;
}

.input-with-slider input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 24px;
    height: 24px;
    background: #3498db;
    border-radius: 50%;
    cursor: pointer;
    border: 3px solid white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.range-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 5px;
    color: #95a5a6;
    font-size: 14px;
}

.tenure-selector {
    margin-bottom: 10px;
}

.tenure-buttons {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.tenure-btn {
    padding: 8px 20px;
    background: #ecf0f1;
    border: none;
    border-radius: 6px;
    color: #7f8c8d;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
}

.tenure-btn.active {
    background: #3498db;
    color: white;
}

.calculate-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #3498db, #2c3e50);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    margin: 20px 0;
}

.calculate-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
}

.results-section {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 25px;
    margin: 25px 0;
}

.result-box {
    text-align: center;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e0e0e0;
}

.result-label {
    color: #7f8c8d;
    font-size: 16px;
    margin-bottom: 8px;
}

.result-value {
    color: #2c3e50;
    font-size: 36px;
    font-weight: 700;
}

.result-details .detail-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px dashed #ddd;
}

.result-details .detail-item:last-child {
    border-bottom: none;
}

.result-details .detail-item span:first-child {
    color: #7f8c8d;
}

.result-details .detail-item span:last-child {
    color: #2c3e50;
    font-weight: 600;
    font-size: 18px;
}

.chart-container {
    height: 300px;
    margin-top: 30px;
}

@media (max-width: 768px) {
    .emi-calculator-container {
        padding: 20px;
        margin: 10px;
    }
    
    .result-value {
        font-size: 28px;
    }
}