# fortunaisk/templates/fortunaisk/base.html -->
{% extends "allianceauth/base-bs5.html" %}
{% load i18n %}
{% load navactive %}
{% load static %}

{% block page_title %}
    {% trans "FortunaIsk" %}
{% endblock page_title %}

{% block head %}
    {{ block.super }}
    <link rel="stylesheet" href="{% static 'css/styles.css' %}">
    <!-- Font Awesome CDN -->
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta3/css/all.min.css" integrity="sha512-Fo3rlrQkTyI9rELK9M0VyrCIe4gLLlRdZo8U+qJ1jNfl3zV3eV3UZ6+dJ4uCZfV+1AAhCKZPpbfwS5IsVnP0Mg==" crossorigin="anonymous" referrerpolicy="no-referrer" />
    <style>
        /* Lucky theme styles */
        body {
            background-color: #fdf6e3; /* light background */
        }
        .navbar {
            background: linear-gradient(135deg, #f1c40f, #27ae60);
        }
        .navbar-brand, .nav-link {
            color: #fff !important;
            font-weight: 600;
        }
        .navbar-brand:hover, .nav-link:hover {
            color: #f1c40f !important;
        }
    </style>
{% endblock head %}

{% block header_nav_brand %}
    <a class="navbar-brand" href="{% url 'fortunaisk:lottery' %}">
        <i class="fas fa-clover me-2" style="color:#27ae60;"></i>
        {% trans "FortunaIsk" %}
    </a>
{% endblock header_nav_brand %}

{% block header_nav_collapse_left %}
    <ul class="navbar-nav">
        <li class="nav-item {% navactive request 'fortunaisk:lottery' %}">
            <a class="nav-link" href="{% url 'fortunaisk:lottery' %}">
                <i class="fas fa-ticket-alt me-1"></i> {% trans "Lottery" %}
            </a>
        </li>
        {% if perms.fortunaisk.can_access_app %}
        <li class="nav-item {% navactive request 'fortunaisk:winner_list' %}">
            <a class="nav-link" href="{% url 'fortunaisk:winner_list' %}">
                <i class="fas fa-trophy me-1"></i> {% trans "Winners" %}
            </a>
        </li>
        {% endif %}
        <li class="nav-item {% navactive request 'fortunaisk:lottery_history' %}">
            <a class="nav-link" href="{% url 'fortunaisk:lottery_history' %}">
                <i class="fas fa-history me-1"></i> {% trans "Lottery History" %}
            </a>
        </li>
        {% if perms.fortunaisk.can_admin_app %}
        <li class="nav-item {% navactive request 'fortunaisk:admin_dashboard' %}">
            <a class="nav-link" href="{% url 'fortunaisk:admin_dashboard' %}">
                <i class="fas fa-cogs me-1"></i> {% trans "Admin Dashboard" %}
            </a>
        </li>
        {% endif %}
        <li class="nav-item {% navactive request 'fortunaisk:user_dashboard' %}">
            <a class="nav-link" href="{% url 'fortunaisk:user_dashboard' %}">
                <i class="fas fa-wallet me-1"></i> {% trans "Ticket Wallet" %}
            </a>
        </li>
    </ul>
{% endblock header_nav_collapse_left %}

{% block content %}
    {% block details %}{% endblock %}
{% endblock content %}
