<script setup lang="ts">
import { editais } from '~/data/mock/editais'
</script>

<template>
  <div class="page">
    <AppTopbar title="Todos os Editais" breadcrumb="Oportunidades · Todos">
      <template #actions>
        <UButton size="sm" class="btn-primary">+ Nova Oportunidade</UButton>
      </template>
    </AppTopbar>
    <div class="content">
      <div class="card">
        <EditaisTable :editais="editais" />
      </div>
    </div>
  </div>
</template>

<style scoped>
.page { display: flex; flex-direction: column; height: 100vh; }
.content { padding: 20px 22px; flex: 1; overflow-y: auto; }
.card { background: white; border-radius: 11px; border: 1px solid #e2e8f0; overflow: hidden; }
.btn-primary { background: linear-gradient(135deg, #667eea, #764ba2) !important; }
</style>
