'use client'

import Link from 'next/link'
import { Shield, Home, Lock } from 'lucide-react'

export default function Unauthorized() {
  return (
    <div className="flex min-h-screen items-center justify-center bg-gray-900">
      <div className="text-center max-w-md mx-auto p-8">
        <Shield className="h-16 w-16 text-yellow-500 mx-auto mb-4" />
        <h1 className="text-3xl font-bold text-white mb-4">Access Denied</h1>
        <p className="text-gray-400 mb-2">
          You don't have permission to access this resource.
        </p>
        <p className="text-sm text-gray-500 mb-8">
          Please contact your administrator if you believe this is an error.
        </p>
        <div className="flex gap-4 justify-center">
          <Link
            href="/"
            className="flex items-center gap-2 px-6 py-3 bg-blue-600 text-white rounded-lg hover:bg-blue-700 transition-colors"
          >
            <Home className="h-5 w-5" />
            Go Home
          </Link>
          <button
            onClick={() => window.history.back()}
            className="flex items-center gap-2 px-6 py-3 bg-gray-600 text-white rounded-lg hover:bg-gray-700 transition-colors"
          >
            <Lock className="h-5 w-5" />
            Go Back
          </button>
        </div>
      </div>
    </div>
  )
}

