<script lang="ts">
	import { FileText, ClipboardCopy, Building2 } 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">
		<!-- Breadcrumb -->
		<div class="breadcrumbs mb-4 text-sm">
			<ul>
				<li>
					<a href={resolve('/')} class="text-primary hover:underline">Dashboard</a>
				</li>
				<li>Licitações</li>
			</ul>
		</div>

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

			<a
				href={resolve('/licitacoes/contratos')}
				class="card bg-base-100 border-base-200 hover:border-primary border shadow-md transition-shadow hover:shadow-lg"
			>
				<div class="card-body">
					<div class="mb-2 flex items-center gap-3">
						<div class="bg-primary/10 rounded-lg p-2">
							<FileText class="text-primary h-6 w-6" strokeWidth={2} />
						</div>
						<h4 class="font-semibold">Contratos</h4>
					</div>
					<p class="text-base-content/70 text-sm">Gestão de contratos, vigências e situações.</p>
				</div>
			</a>

			<div class="card bg-base-100 opacity-70 shadow-md">
				<div class="card-body">
					<div class="mb-2 flex items-center gap-3">
						<div class="bg-base-200 rounded-lg p-2">
							<ClipboardCopy class="text-base-content/50 h-6 w-6" strokeWidth={2} />
						</div>
						<h4 class="text-base-content/70 font-semibold">Processos Licitatórios</h4>
					</div>
					<p class="text-base-content/60 text-sm">
						Em breve: cadastro e acompanhamento de licitações.
					</p>
				</div>
			</div>

			<div class="card bg-base-100 opacity-70 shadow-md">
				<div class="card-body">
					<div class="mb-2 flex items-center gap-3">
						<div class="bg-base-200 rounded-lg p-2">
							<FileText class="text-base-content/50 h-6 w-6" strokeWidth={2} />
						</div>
						<h4 class="text-base-content/70 font-semibold">Documentação</h4>
					</div>
					<p class="text-base-content/60 text-sm">Em breve: gestão de documentos e editais.</p>
				</div>
			</div>
		</div>
	</main>
</ProtectedRoute>
