<template>
  <div class="page-header">
    <div class="header-left">
      <h1 v-if="title" class="page-title">{{ title }}</h1>
      <p v-if="description" class="page-desc">{{ description }}</p>
    </div>
    <div v-if="$slots.actions" class="header-right">
      <slot name="actions" />
    </div>
  </div>
</template>

<script setup>
defineProps({
  title: { type: String, default: '' },
  description: { type: String, default: '' }
})
</script>

<style scoped>
.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-sm) var(--space-lg);
  background: var(--bg-header);
  border-bottom: 1px solid var(--border-light);
  min-height: var(--page-header-height);
}
.header-left {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}
.header-right {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}
.page-title {
  font-size: var(--font-xl);
  font-weight: var(--weight-semibold);
  color: var(--text-primary);
  margin: 0;
  line-height: 1.3;
}
.page-desc {
  font-size: var(--font-xs);
  color: var(--text-tertiary);
  margin: 0;
}
</style>
