{% load static %}
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>{{ title|default:"Sentinel OSINT" }}</title>
    
    <!-- Fonts -->
    <link rel="preconnect" href="https://fonts.googleapis.com">
    <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
    <link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;800&family=JetBrains+Mono:wght@700&display=swap" rel="stylesheet">
    
    <!-- Bootstrap CSS -->
    <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css" rel="stylesheet">
    
    <!-- Custom CSS -->
    <link rel="stylesheet" href="{% static 'css/custom.css' %}?v={% now 'U' %}">
</head>
<body>
    <header class="osint-header mb-5">
        <div class="container d-flex justify-content-between align-items-center">
            <a href="{% url 'index' %}" class="text-decoration-none">
                <h1 class="brand-title m-0 fs-3">SENTINEL_OSINT</h1>
            </a>
            <nav class="d-flex align-items-center gap-4">
                <a href="{% url 'index' %}" class="text-white text-decoration-none small fw-bold">DASHBOARD</a>
                <a href="/admin/" class="text-white text-decoration-none small fw-bold">ADMIN_PANEL</a>
            </nav>
        </div>
    </header>

    <main class="container">
        {% if messages %}
            {% for message in messages %}
                <div class="alert alert-{{ message.tags }} dashboard-card mb-4" role="alert">
                    {{ message }}
                </div>
            {% endfor %}
        {% endif %}

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

    <footer class="container py-5 mt-5 border-top border-secondary text-muted small text-center">
        &copy; 2026 SENTINEL_OSINT CORE // FORENSIC INVESTIGATION SYSTEM
    </footer>

    <!-- Bootstrap JS Bundle -->
    <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/js/bootstrap.bundle.min.js"></script>
</body>
</html>