<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>{% block title %}University ATS{% endblock %}</title>
    <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/css/bootstrap.min.css" rel="stylesheet">
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css">
    <style>
        .navbar-brand { font-weight: bold; }
        .status-badge { font-size: 0.8em; }
        .linkedin-posted { background-color: #d1ecf1; border-left: 4px solid #0dcaf0; }
        .job-card { transition: transform 0.2s; }
        .job-card:hover { transform: translateY(-2px); }
    </style>
    {%  block customCSS %}
    {% endblock %}
</head>
<body>
    <nav class="navbar navbar-expand-lg navbar-dark bg-success">
        <div class="container">
            <a class="navbar-brand" href="{% url 'jobs:job_list' %}">
                <i class="fas fa-university"></i> Princess Nourah Bint Abdul Rahman University
            </a>
            <div class="navbar-nav ms-auto">
                {% if request.session.linkedin_authenticated %}
                    <span class="navbar-text text-white me-3">
                        <i class="fab fa-linkedin"></i> LinkedIn Connected
                    </span>
                {% endif %}
                <a class="nav-link" href="{% url 'jobs:create_job' %}">Create Job</a>
                <a class="nav-link" href="{% url 'jobs:linkedin_login' %}">LinkedIn Login</a>
                <a></a>
            </div> 
        </div>
    </nav>

    <div class="container mt-4">
        {% if messages %}
            {% for message in messages %}
                <div class="alert alert-{{ message.tags }} alert-dismissible fade show" role="alert">
                    {{ message }}
                    <button type="button" class="btn-close" data-bs-dismiss="alert"></button>
                </div>
            {% endfor %}
        {% endif %}

        {% block content %}{% endblock %}
    </div>

    <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/js/bootstrap.bundle.min.js"></script>
    {% block customJS %}{% endblock %}
</body>
</html>