<?php
if (session_status() === PHP_SESSION_NONE) {
    session_start();
}
require_once '../includes/db.php';

// লগইন চেক
if (!isset($_SESSION['admin_id'])) {
    header("Location: login.php");
    exit;
}

$admin_name = $_SESSION['admin_name'] ?? 'Admin';
?>
<!DOCTYPE html>
<html lang="bn">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Admin Dashboard | IzhaanPrinters</title>
    
    <link href="https://fonts.googleapis.com/css2?family=Hind+Siliguri:wght@400;600;700&family=Poppins:wght@400;500;600;700&display=swap" rel="stylesheet">
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
    <script src="https://cdn.tailwindcss.com"></script>
    <script>
        tailwind.config = {
            theme: {
                extend: {
                    colors: {
                        admin: '#0F172A', // Dark Blue/Slate
                        accent: '#3B82F6', // Blue
                        secondary: '#F59E0B' // Gold
                    }
                }
            }
        }
    </script>
    <style>
        body { font-family: 'Poppins', 'Hind Siliguri', sans-serif; }
        .sidebar-active { background: #1E293B; border-left: 4px solid #3B82F6; }
    </style>
</head>
<body class="bg-gray-100 min-h-screen">

    <!-- Mobile Top Header -->
    <header class="bg-admin text-white lg:hidden flex justify-between items-center px-4 py-3 sticky top-0 z-50">
        <h1 class="font-bold text-xl">Izhaan<span class="text-secondary">Admin</span></h1>
        <button id="toggleSidebar" class="text-2xl outline-none">
            <i class="fa-solid fa-bars"></i>
        </button>
    </header>

    <div class="flex">