<div id="tambahmodal" tabindex="-1" aria-hidden="true" class="hidden fixed top-0 right-0 left-0 z-50 flex justify-center items-center w-full md:inset-0 h-screen bg-opacity-50">
    <div class="relative p-4 w-full max-w-md">
        <!-- Modal content -->
        <div class="relative bg-white rounded-lg shadow">
            <!-- Modal header -->
            <div class="flex items-center justify-between p-4 border-b rounded-t">
                <h3 class="text-lg font-semibold text-gray-">Tambah Buku</h3>
                <button type="button" data-modal-hide="tambahmodal" class="text-gray-400 bg-transparent hover:bg-gray-200 hover:text-gray-900 rounded-lg text-sm w-8 h-8 ms-auto inline-flex justify-center items-center" id="close-modal">
                    <svg class="w-3 h-3" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 14 14">
                        <path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="m1 1 6 6m0 0 6 6M7 7l6-6M7 7l-6 6" />
                    </svg>
                    <span class="sr-only">Close modal</span>
                </button>
            </div>
            <!-- Modal body -->
            <form action="buku/tambahaksi.php" method="POST" enctype="multipart/form-data" class="p-4">
                <div class="grid gap-4 mb-4">
                    <div class="col-span-2">
                        <label class="block mb-2 text-sm font-medium text-gray-900" for="user_avatar">Upload file</label>
                        <input type="file" name="foto" id="foto" class="block w-full text-sm text-gray-900 border border-gray-300 rounded-lg cursor-pointer bg-gray-50 --focus:outline-none" required>
                    </div>
                    <div class="col-span-2">
                        <label for="judul_buku" class="block mb-2 text-sm font-medium text-gray-900">Judul buku</label>
                        <input type="text" name="judul_buku" id="judul_buku" class="bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-600 focus:border-blue-600 block w-full p-2.5" placeholder="Masukkan judul buku" required>
                    </div>
                    <div class="col-span-2">
                        <label for="penulis" class="block mb-2 text-sm font-medium text-gray-900">Penulis buku</label>
                        <input type="text" name="penulis" id="penulis" class="bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-600 focus:border-blue-600 block w-full p-2.5" placeholder="Masukkan nama penulis" required>
                    </div>
                    <div class="col-span-2">
                        <label for="tahun_terbit" class="block mb-2 text-sm font-medium text-gray-900">Tahun terbit buku</label>
                        <input type="number" name="tahun_terbit" id="tahun_terbit" min="1900" max="2099" step="1" class="bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-600 focus:border-blue-600 block w-full p-2.5" placeholder="Masukkan tahun terbit" required>
                    </div>
                </div>
                <div class="flex justify-end">
                    <button type="submit" class="text-white bg-blue-700 hover:bg-blue-800 focus:ring-4 focus:outline-none focus:ring-blue-300 font-medium rounded-lg text-sm px-5 py-2.5 text-center">
                        Tambah Buku
                    </button>
                </div>
            </form>
        </div>
    </div>
</div>