<?php
// admin-header.php
session_start();
if (!isset($_SESSION['admin_logged_in']) || $_SESSION['admin_logged_in'] !== true) {
    header("Location: login.php");
    exit;
}
?>
<!DOCTYPE html>
<html>
<head>
  <meta charset="UTF-8">
  <title>Admin Panel</title>
  <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css" rel="stylesheet">
  <style>
    body { display: flex; min-height: 100vh; }
    .sidebar {
      width: 220px;
      background: #343a40;
      color: #fff;
      padding: 20px;
    }
    .sidebar a {
      color: #fff;
      display: block;
      padding: 8px 0;
      text-decoration: none;
    }
    .sidebar a:hover {
      background: #495057;
      border-radius: 4px;
    }
    .main-content {
      flex-grow: 1;
      padding: 20px;
    }
  </style>
</head>
<body>
<div class="sidebar">
  <h5>Admin Menu</h5>
  <a href="admin.php">Dashboard</a>
  <a href="admin-activity.php">User Activity</a>
  <a href="admin-users.php">User Manager</a>
  <a href="add_program.php">Add Programs</a>
  <a href="admin-branding.php">Branding</a>
  <a href="add-sharecode-admin.php">Share Codes</a>
  <a href="video-admin.php">Training Videos</a>
  <a href="email_broadcast.php">Internal Mailer</a>
  <a href="mailer/mailer.php">CSV Mailer</a>
  <a href="email-templates.php">Email Templates</a>
</div>
<div class="main-content">
