<?php
require_once __DIR__ . '/../includes/functions.php';
requireRole('user');
$currentPage = basename($_SERVER['PHP_SELF']);
?>
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title><?php echo $pageTitle ?? 'My Account - ShadiHall'; ?></title>
    <link rel="stylesheet" href="<?php echo BASE_URL; ?>/assets/css/style.css">
</head>
<body>
<div class="dashboard">
    <aside class="sidebar">
        <div class="brand">
            <h3>❦ ShadiHall</h3>
            <p>My Account</p>
            <p style="font-size:12px; color:rgba(255,255,255,0.6); margin-top:8px;">
                <?php echo htmlspecialchars($_SESSION['name']); ?>
            </p>
        </div>
        <ul>
            <li><a href="<?php echo BASE_URL; ?>/user/dashboard.php" class="<?php echo $currentPage=='dashboard.php'?'active':''; ?>">
                <span>◆</span> Dashboard
            </a></li>
            <li><a href="<?php echo BASE_URL; ?>/halls.php">
                <span>◆</span> Browse Halls
            </a></li>
            <li><a href="<?php echo BASE_URL; ?>/user/my-bookings.php" class="<?php echo $currentPage=='my-bookings.php'?'active':''; ?>">
                <span>◆</span> My Bookings
            </a></li>
            <li><a href="<?php echo BASE_URL; ?>/user/contact-admin.php" class="<?php echo $currentPage=='contact-admin.php'?'active':''; ?>">
                <span>◆</span> Contact Admin
            </a></li>
            <li><a href="<?php echo BASE_URL; ?>/user/my-messages.php" class="<?php echo $currentPage=='my-messages.php'?'active':''; ?>">
                <span>◆</span> My Messages
            </a></li>
            <li style="margin-top:20px; border-top:1px solid rgba(255,255,255,0.15); padding-top:15px;">
                <a href="<?php echo BASE_URL; ?>/index.php"><span>◇</span> Home</a>
            </li>
            <li><a href="<?php echo BASE_URL; ?>/logout.php"><span>◇</span> Logout</a></li>
        </ul>
    </aside>
    <main class="main-content">
