<?php
// Check if admin is logged in as a user
if (isset($_SESSION['admin_session_backup'])) {
    echo '
    <style>
        .admin-indicator {
            position: fixed;
            top: 10px;
            right: 10px;
            background: #f87171;
            color: #fff;
            padding: 10px 15px;
            border-radius: 8px;
            box-shadow: 0 4px 15px rgba(248, 113, 113, 0.5);
            z-index: 9999;
            font-size: 12px;
            display: flex;
            align-items: center;
            gap: 10px;
        }
        .admin-indicator a {
            background: #fff;
            color: #f87171;
            padding: 5px 10px;
            border-radius: 5px;
            text-decoration: none;
            font-weight: bold;
            font-size: 11px;
        }
        .admin-indicator a:hover {
            background: #fee;
        }
    </style>
    <div class="admin-indicator">
        <i class="fas fa-user-shield"></i>
        <span>Admin Mode</span>
        <a href="return_to_admin.php">Return to Admin</a>
    </div>
    ';
}
?>