<!DOCTYPE html>
<html>
<head>
    <title>Rehabilitation Program</title>
    <style>
        body {
            font-family: sans-serif;
        }
        h1 {
            text-align: center;
            color: #007bff;
        }
        .program-details, .exercise-list {
            margin-bottom: 20px;
        }
        .program-details p, .exercise-list li {
            margin: 5px 0;
        }
    </style>
</head>
<body>
    <h1>Rehabilitation Program</h1>
    
    <div class="program-details">
        <h2>Program Details</h2>
        <p><strong>Patient:</strong> {{ program.patient_name }}</p>
        <p><strong>Clinician:</strong> {{ program.clinician_name }}</p>
        <p><strong>Date Created:</strong> {{ program.created_at|date:"F d, Y" }}</p>
    </div>

    <div class="exercise-list">
        <h2>Exercises</h2>
        <ul>
            {% for exercise in program.exercises.all %}
                <li>
                    <strong>{{ exercise.title }}</strong><br>
                    {{ exercise.description|linebreaksbr }}
                </li>
            {% endfor %}
        </ul>
    </div>
</body>
</html>
