.emi-calculator-container {
    max-width: 600px;
    margin: 20px auto;
    padding: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    font-family: 'Arial', sans-serif;
}

.emi-calculator-form {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.emi-calculator-form h3 {
    color: #333;
    margin-bottom: 20px;
    text-align: center;
    font-size: 24px;
    border-bottom: 2px solid #667eea;
    padding-bottom: 10px;
}

.emi-calculator-form h3 i {
    color: #667eea;
    margin-right: 10px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #555;
}

.form-group label i {
    color: #667eea;
    margin-right: 8px;
}

.loan-input, .interest-input, .tenure-input, .tenure-type-select {
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.loan-input, .interest-input {
    width: 100%;
}

.tenure-container {
    display: flex;
    gap: 10px;
}

.tenure-input {
    flex: 2;
}

.tenure-type-select {
    flex: 1;
}

.loan-input:focus, .interest-input:focus, .tenure-input:focus, .tenure-type-select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.calculate-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.calculate-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.calculate-btn:active {
    transform: translateY(0);
}

.calculate-btn i {
    margin-right: 10px;
}

.emi-result {
    margin-top: 25px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #667eea;
}

.emi-result h4 {
    color: #333;
    margin-bottom: 15px;
    font-size: 18px;
    border-bottom: 1px solid #ddd;
    padding-bottom: 10px;
}

.emi-result h4 i {
    color: #667eea;
    margin-right: 10px;
}

.result-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    padding: 8px 0;
    border-bottom: 1px dashed #ddd;
}

.result-item .label {
    color: #555;
}

.result-item .value {
    font-weight: bold;
    color: #667eea;
}

.breakdown {
    margin-top: 20px;
    padding: 15px;
    background: white;
    border-radius: 8px;
    border: 1px solid #eee;
}

.breakdown h5 {
    color: #555;
    margin-bottom: 15px;
    font-size: 16px;
}

.breakdown h5 i {
    color: #667eea;
    margin-right: 8px;
}

.breakdown-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.breakdown-item.total {
    border-top: 1px solid #ddd;
    padding-top: 10px;
    font-weight: bold;
    color: #333;
}

.loading {
    text-align: center;
    padding: 20px;
    color: #667eea;
    font-size: 16px;
}

.loading i {
    margin-right: 10px;
}

.error-message {
    padding: 15px;
    background: #f8d7da;
    color: #721c24;
    border-radius: 8px;
    border-left: 4px solid #dc3545;
    margin-top: 15px;
}

.error-message i {
    margin-right: 10px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .emi-calculator-container {
        margin: 10px;
        padding: 15px;
    }
    
    .emi-calculator-form {
        padding: 20px;
    }
    
    .calculate-btn {
        padding: 12px;
        font-size: 16px;
    }
    
    .tenure-container {
        flex-direction: column;
        gap: 10px;
    }
    
    .tenure-input, .tenure-type-select {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .emi-calculator-form h3 {
        font-size: 20px;
    }
    
    .emi-result h4 {
        font-size: 16px;
    }
    
    .result-item {
        flex-direction: column;
    }
    
    .result-item .value {
        margin-top: 5px;
    }
}