<?php
if (session_status() !== PHP_SESSION_ACTIVE) {
    session_start();
}
?>

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Admin</title>

<style>

body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #f4f6f8;
}

.sidebar {
  position: fixed;
  width: 200px;
  height: 100vh;
  background: #1f2937;
  color: #fff;
  padding: 16px;
  box-sizing: border-box;
}

.sidebar h2 {
  margin-top: 0;
  font-size: 16px;
}

.sidebar a {
  display: block;
  color: #cbd5e1;
  text-decoration: none;
  padding: 8px 0;
  font-size: 14px;
}

.sidebar a:hover {
  color: #fff;
}

.main {
  margin-left: 200px;
  padding: 24px;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
}

th, td {
  padding: 10px;
  border-bottom: 1px solid #e5e7eb;
}

th {
  background: #f9fafb;
}

button {
  padding: 8px 14px;
  border: none;
  background: #2563eb;
  color: #fff;
  cursor: pointer;
}

button.secondary {
  background: #6b7280;
}

.modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  display: none;
  align-items: center;
  justify-content: center;
}

.modal-box {
  background: #fff;
  padding: 20px;
  width: 460px;
}

.modal-box input,
.modal-box select {
  width: 100%;
  padding: 8px;
  margin-bottom: 10px;
}

</style>
</head>

<body>