{% extends "layouts/base.html" %}
{% load i18n %}

{% block sidebar %}{% endblock %}

{% block title %}{% trans "Welcome to PX360" %}{% endblock %}

{% block content %}
<div class="min-h-screen bg-gradient-to-br from-light to-blue-50 flex items-center justify-center py-12 px-4">
    <div class="max-w-3xl w-full">
        <div class="bg-white rounded-2xl shadow-xl p-8 md:p-12">
            <!-- Welcome Header -->
            <div class="text-center mb-8">
                <div class="inline-flex items-center justify-center w-24 h-24 bg-navy rounded-full mb-6">
                    <i data-lucide="rocket" class="w-12 h-12 text-white"></i>
                </div>
                <h1 class="text-2xl md:text-3xl font-bold text-navy mb-1">
                    {% trans "Welcome to PX360!" %}
                </h1>
                <p class="text-sm text-slate">
                    {% trans "Your journey to better patient experience starts here" %}
                </p>
            </div>

            <!-- Info Alert -->
            <div class="bg-blue-50 border border-blue-200 rounded-xl p-5 mb-8">
                <div class="flex items-start gap-3">
                    <i data-lucide="info" class="w-6 h-6 text-blue-600 flex-shrink-0 mt-0.5"></i>
                    <div>
                        <p class="text-blue-800 font-medium mb-1">{% trans "Onboarding Required" %}</p>
                        <p class="text-blue-700 text-sm">
                            {% trans "Please complete the onboarding wizard to set up your account and learn about the system." %}
                        </p>
                    </div>
                </div>
            </div>

            <!-- Onboarding Steps -->
            <div class="grid grid-cols-1 md:grid-cols-3 gap-6 mb-10">
                <div class="text-center p-6 bg-slate-50 rounded-xl border-2 border-slate-200 hover:border-navy transition">
                    <div class="inline-flex items-center justify-center w-16 h-16 bg-navy/10 rounded-xl mb-4">
                        <i data-lucide="book-open" class="w-8 h-8 text-navy"></i>
                    </div>
                    <h3 class="font-bold text-gray-800 mb-2">{% trans "Learn" %}</h3>
                    <p class="text-sm text-slate">
                        {% trans "Understand the PX360 system" %}
                    </p>
                </div>

                <div class="text-center p-6 bg-slate-50 rounded-xl border-2 border-slate-200 hover:border-green-400 transition">
                    <div class="inline-flex items-center justify-center w-16 h-16 bg-green-50 rounded-xl mb-4">
                        <i data-lucide="clipboard-check" class="w-8 h-8 text-green-600"></i>
                    </div>
                    <h3 class="font-bold text-gray-800 mb-2">{% trans "Acknowledge" %}</h3>
                    <p class="text-sm text-slate">
                        {% trans "Review and confirm key policies" %}
                    </p>
                </div>

                <div class="text-center p-6 bg-slate-50 rounded-xl border-2 border-slate-200 hover:border-blue transition">
                    <div class="inline-flex items-center justify-center w-16 h-16 bg-blue-50 rounded-xl mb-4">
                        <i data-lucide="pen-tool" class="w-8 h-8 text-blue-600"></i>
                    </div>
                    <h3 class="font-bold text-gray-800 mb-2">{% trans "Sign" %}</h3>
                    <p class="text-sm text-slate">
                        {% trans "Create your account credentials" %}
                    </p>
                </div>
            </div>

            <!-- Start Button -->
            <div class="text-center">
                <button onclick="startWizard()" class="inline-flex items-center justify-center w-full md:w-auto bg-navy text-white px-10 py-4 rounded-xl font-bold text-lg hover:bg-blue transition shadow-lg">
                    <i data-lucide="arrow-right" class="w-5 h-5 mr-2"></i>
                    {% trans "Start Onboarding" %}
                </button>
                <p class="text-slate text-sm mt-4">
                    <i data-lucide="clock" class="w-4 h-4 inline mr-1"></i>
                    {% trans "Estimated time: 10-15 minutes" %}
                </p>
            </div>
        </div>
    </div>
</div>

<script>
function startWizard() {
    window.location.href = '/accounts/onboarding/wizard/step/1/';
}

document.addEventListener('DOMContentLoaded', function() {
    lucide.createIcons();
});
</script>
{% endblock %}