{% extends 'base.html' %}
{% load static %}
{% block title %}Message Detail — Parent Portal{% endblock %}
{% block content %}
<div class="container-fluid">
    <div class="d-flex justify-content-between align-items-center mb-4">
        <h1 class="h3 mb-0">Message</h1>
        <a href="{% url 'parents:parent_messages' %}" class="btn btn-outline-secondary"><i class="fas fa-arrow-left me-2"></i>Back</a>
    </div>
    <div class="row justify-content-center">
        <div class="col-md-7">
            <div class="card shadow">
                <div class="card-header py-3 d-flex justify-content-between align-items-center">
                    <h6 class="m-0 font-weight-bold text-primary"><i class="fas fa-sms me-2"></i>{{ message.get_message_type_display }}</h6>
                    <span class="text-muted small">{{ message.sent_time|date:"d M Y H:i" }}</span>
                </div>
                <div class="card-body">
                    <div class="alert alert-light" style="white-space:pre-line; font-size:1.05rem;">{{ message.message }}</div>
                    <p class="text-muted small mt-3 mb-0">Sent by Rapha-Bethel BNPS Administration</p>
                </div>
            </div>
        </div>
    </div>
</div>
{% endblock %}
