{% extends 'base.html' %}
{% block title %}Edit Expense - Astron Hosts Expense Tracker{% endblock %}
{% block content %}
<div class="container d-flex align-items-center justify-content-center min-vh-100">
    <div class="row justify-content-center w-100">
        <div class="col-md-6">
            <div class="card shadow-lg p-4 rounded-4 border-0" style="background: #fff;">
                <div class="text-center mb-3">
                    <span style="font-size:2.5rem;">💳</span>
                </div>
                <h2 class="mb-4 text-center display-6 fw-bold" style="letter-spacing:1px;">Edit Expense</h2>
                <form method="post" novalidate>
                    {% csrf_token %}
                    {{ form.as_p }}
                    <button type="submit" class="btn btn-danger w-100 rounded-3 py-2 fw-bold" style="font-size:1.1rem;">Update Expense</button>
                </form>
                <a href="{% url 'dashboard' %}" class="btn btn-link mt-3">Back to Dashboard</a>
            </div>
        </div>
    </div>
</div>
{% endblock %}