<script setup>
// No need for ref, reactive, or dragging logic for a fixed panel
</script>

<template>
  <div
    ref="panelRef"
    class="fixed-panel"
  >
    <div class="panel-header">
      <slot name="header"></slot>
    </div>
    <div class="panel-body">
      <slot></slot>
    </div>
  </div>
</template>

<style scoped>
.fixed-panel {
  position: fixed; /* Changed from absolute to fixed */
  z-index: 1000;
  background-color: var(--panel-color);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius); /* Use theme variable */
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
  display: flex;
  flex-direction: column;
  /* Default fixed position (can be overridden by parent) */
  top: 20px;
  left: 20px;
  min-width: 200px; /* Ensure visibility */
}

.panel-header {
  padding: 0.5rem;
  border-bottom: 1px solid var(--border-color);
  /* Removed cursor: move; as it's no longer draggable */
}

.panel-body {
  padding: 0.5rem;
  overflow: auto; /* Allow content to scroll if it overflows */
}
</style>
