{% extends 'userapp/master.html' %}
{% load static %}
{% block content %}
    
    <style>
        body {
            font-family: Arial, sans-serif;
            background-color: #f4f4f4;
            text-align: center;
            margin: 0;
            padding: 0;
        }
        
        form {
            background: white;
            max-width: 400px;
            margin: 50px auto;
            padding: 20px;
            border-radius: 8px;
            box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
        }
        
        h2 {
            color: #101010;
           
            
        }
        
        label {
            display: block;
            text-align: left;
            margin-top: px;
            font-weight: bold;
        }
        
        input, select, textarea {
            width: 100%;
            padding: 10px;
            margin-top: 5px;
            border: 1px solid #ccc;
            border-radius: 5px;
        }
        
        input[type="submit"] {
            background-color: #28a745;
            color: white;
            font-size: 16px;
            border: none;
            cursor: pointer;
            margin-top: 15px;
        }
        
        input[type="submit"]:hover {
            background-color: #218838;
        }
    </style>
</head>
<body>
    <h2>Bicycle Rented Details</h2>
    <div class="row">
        <div class="col-3">
            <h4>Bicycle Image</h4>
            <img src="{{bike.image.url}}" alt="Photo" height="300px" width="300px">
        </div>
        <div class="col-3 text-left">
            <h4>Bicycle Details</h4>
            <h6>Bicycle Code : {{bike.code}}</h6>
            <h6>Bicycle Model : {{bike.model}}</h6>
            <h6>Bicycle Price :₹30(Every 15 mins)</h6>
            <h6>Bicycle Category : {{bike.category.name}}</h6>
            <h4>Station Details</h4>
            <h6>Station Name : {{bike.station.name}}</h6>
            <h6>Station Location : {{bike.station.location}}</h6>
            <h6>Station Map Link : <a href="{{bike.station.map}}">Click Here</a></h6>
        </div>
        <div class="col">
            <form method="post" enctype="multipart/form-data">
                {% csrf_token %}
                <label for="aadhar_card">Aadhar Card:</label>
                <input type="file" id="aadhar_card" name="aadhar_card" accept="image/*" required>
                
                <div class="container-fluid pt-5">
                    <button class="btn btn-primary w-20 h-10" type="submit">Start Ride</button>
                </div>
            </form>
        </div>
    </div>
    
{% endblock %}