{% extends "base.html" %}

{% block title %}Dashboard{% endblock %}

{% block content %}
<div class="container mt-5">
    <div class="card shadow">
        <div class="card-header d-flex justify-content-between align-items-center">
            <h3 class="mb-0">Dashboard</h3>
            <a href="{{ url_for('logout') }}" class="btn btn-outline-secondary">
                Logout <i class="bi bi-box-arrow-right"></i>
            </a>
        </div>
        <div class="card-body">
            <div class="alert alert-success">
                Welcome back, <strong>{{ current_user.email }}</strong>!
            </div>
            <div class="mt-4">
                <h5>Account Details</h5>
                <ul class="list-group">
                    <li class="list-group-item d-flex justify-content-between">
                        <span>Registered Email:</span>
                        <span class="text-muted">{{ current_user.email }}</span>
                    </li>
                    <li class="list-group-item d-flex justify-content-between">
                        <span>Account Created:</span>
                        <span class="text-muted">Just now</span>
                    </li>
                </ul>
            </div>
        </div>
    </div>
</div>
{% endblock %}
