<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title><?php echo isset($pageTitle) ? $pageTitle . ' - ' : ''; ?>Admin - <?php echo SITE_NAME; ?></title>
    <link rel="stylesheet" href="<?php echo SITE_URL; ?>/assets/css/style.css">
    <style>
        /* Additional Admin Styles */
        .admin-wrapper {
            display: flex;
            min-height: 100vh;
        }
        
        .admin-sidebar {
            width: 250px;
            background: var(--primary-black);
            color: var(--pure-white);
            position: fixed;
            top: 0;
            left: 0;
            bottom: 0;
            padding: var(--spacing-lg);
        }
        
        .admin-logo {
            font-size: 1.25rem;
            font-weight: 700;
            letter-spacing: 3px;
            text-transform: uppercase;
            margin-bottom: var(--spacing-xxl);
            color: var(--pure-white);
            display: block;
        }
        
        .admin-nav {
            margin-bottom: var(--spacing-xl);
        }
        
        .admin-nav a {
            display: block;
            padding: var(--spacing-md);
            color: var(--light-gray);
            font-size: 0.875rem;
            letter-spacing: 1px;
            text-transform: uppercase;
            transition: var(--transition);
            border-left: 2px solid transparent;
        }
        
        .admin-nav a:hover,
        .admin-nav a.active {
            color: var(--pure-white);
            border-left-color: var(--pure-white);
            background: var(--secondary-black);
        }
        
        .admin-content {
            flex: 1;
            margin-left: 250px;
            padding: var(--spacing-xl);
            background: var(--off-white);
            min-height: 100vh;
        }
        
        .admin-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: var(--spacing-xl);
        }
        
        .admin-header h1 {
            font-size: 1.75rem;
            font-weight: 400;
        }
    </style>
</head>
<body>
    <div class="admin-wrapper">
        <aside class="admin-sidebar">
            <a href="index.php" class="admin-logo">Rorschach<span>Co.</span> Admin</a>
            
            <nav class="admin-nav">
                <a href="index.php" class="<?php echo basename($_SERVER['PHP_SELF']) === 'index.php' ? 'active' : ''; ?>">Dashboard</a>
                <a href="products.php" class="<?php echo basename($_SERVER['PHP_SELF']) === 'products.php' ? 'active' : ''; ?>">Products</a>
                <a href="orders.php" class="<?php echo basename($_SERVER['PHP_SELF']) === 'orders.php' ? 'active' : ''; ?>">Orders</a>
                <a href="../index.php" target="_blank">View Website</a>
                <a href="../logout.php">Logout</a>
            </nav>
        </aside>
        
        <main class="admin-content">
