<script lang="ts">
  import { Trophy, Award, Building2, Workflow } from "lucide-svelte";
  import { resolve } from "$app/paths";
  import ProtectedRoute from "$lib/components/ProtectedRoute.svelte";
</script>

<ProtectedRoute>
<main class="container mx-auto px-4 py-4">
  <div class="text-sm breadcrumbs mb-4">
    <ul>
      <li><a href={resolve('/')} class="text-primary hover:underline">Dashboard</a></li>
      <li>Programas Esportivos</li>
    </ul>
  </div>

  <div class="mb-6">
    <div class="flex items-center gap-4 mb-2">
      <div class="p-3 bg-yellow-500/20 rounded-xl">
        <Trophy class="h-8 w-8 text-yellow-600" strokeWidth={2} />
      </div>
      <div>
        <h1 class="text-3xl font-bold text-primary">Programas Esportivos</h1>
        <p class="text-base-content/70">Gestão de programas e projetos esportivos</p>
      </div>
    </div>
  </div>

  <div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4">
    <a
      href={resolve('/licitacoes/empresas')}
      class="card bg-base-100 shadow-md hover:shadow-lg transition-shadow border border-base-200 hover:border-primary"
    >
      <div class="card-body">
        <div class="flex items-center gap-3 mb-2">
          <div class="p-2 bg-primary/10 rounded-lg">
            <Building2 class="h-6 w-6 text-primary" strokeWidth={2} />
          </div>
          <h4 class="font-semibold">Empresas</h4>
        </div>
        <p class="text-sm text-base-content/70">
          Cadastro, listagem e edição de empresas e seus contatos.
        </p>
      </div>
    </a>

    <div class="card bg-base-100 shadow-md opacity-70">
      <div class="card-body">
        <div class="flex items-center gap-3 mb-2">
          <div class="p-2 bg-base-200 rounded-lg">
            <Award class="h-6 w-6 text-base-content/50" strokeWidth={2} />
          </div>
          <h4 class="font-semibold text-base-content/70">Programas Esportivos</h4>
        </div>
        <p class="text-sm text-base-content/60">
          Em breve: funcionalidades para gestão de programas e projetos esportivos.
        </p>
      </div>
    </div>

    <a
      href={resolve('/fluxos')}
      class="card bg-base-100 shadow-md hover:shadow-lg transition-shadow border border-base-200 hover:border-secondary"
    >
      <div class="card-body">
        <div class="flex items-center gap-3 mb-2">
          <div class="p-2 bg-secondary/10 rounded-lg">
            <Workflow class="h-6 w-6 text-secondary" strokeWidth={2} />
          </div>
          <h4 class="font-semibold">Fluxos de Trabalho</h4>
        </div>
        <p class="text-sm text-base-content/70">
          Gerencie templates e instâncias de fluxos de trabalho para programas e projetos esportivos.
        </p>
      </div>
    </a>
  </div>
</main>
</ProtectedRoute>
