* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.emi-calculator {
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    min-height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.emi-calculator .header {
    background: #4a00e0;
    color: white;
    padding: 25px;
    text-align: center;
    border-radius: 15px 15px 0 0;
}

.emi-calculator .header h1 {
    font-weight: 600;
    font-size: 28px;
}

.emi-calculator .header p {
    margin-top: 8px;
    opacity: 0.9;
}

.calculator-container {
    display: flex;
    flex-wrap: wrap;
    background: white;
    border-radius: 0 0 15px 15px;
}

.inputs {
    flex: 1;
    min-width: 300px;
    padding: 30px;
    background: #f9f9f9;
}

.results {
    flex: 1;
    min-width: 300px;
    padding: 30px;
    background: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.input-group {
    margin-bottom: 25px;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
}

.slider-container {
    display: flex;
    align-items: center;
}

.slider-container input[type="range"] {
    flex: 1;
    height: 8px;
    -webkit-appearance: none;
    background: #ddd;
    border-radius: 4px;
    outline: none;
}

.slider-container input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #4a00e0;
    cursor: pointer;
}

.slider-value {
    width: 70px;
    text-align: right;
    font-weight: 600;
    color: #4a00e0;
}

.calculate-btn {
    background: #4a00e0;
    color: white;
    border: none;
    padding: 15px;
    width: 100%;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
    margin-top: 10px;
}

.calculate-btn:hover {
    background: #3a00c0;
}

.result-box {
    text-align: center;
    margin-bottom: 25px;
}

.result-title {
    font-size: 16px;
    color: #666;
    margin-bottom: 8px;
}

.result-value {
    font-size: 32px;
    font-weight: 700;
    color: #4a00e0;
}

.breakdown {
    background: #f3f3f3;
    padding: 20px;
    border-radius: 10px;
    margin-top: 20px;
}

.breakdown-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #ddd;
}

.breakdown-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.chart-container {
    height: 200px;
    margin-top: 30px;
}

@media (max-width: 768px) {
    .calculator-container {
        flex-direction: column;
    }
}
