<!-- Modal Form untuk Tambah Type -->
<div class="modal fade" id="TypeModal" tabindex="-1" aria-labelledby="TypeModalLabel" aria-hidden="true">
    <div class="modal-dialog modal-dialog-centered">
        <div class="modal-content">
            <!-- Modal Header with custom styling -->
            <div class="modal-header bg-primary text-white">
                <h5 class="modal-title" id="TypeModalLabel"><i class="fas fa-user-plus"></i> Tambah Kategori ATK</h5>
                <button type="button" class="btn-close btn-close-white" data-bs-dismiss="modal"></button>
            </div>
            
            <!-- Modal Body with improved form styling -->
            <div class="modal-body">
                <form action="<?php echo site_url('Admin/ATK/Atk_Categories_Controller/tambah'); ?>" method="post">
                    <input type="hidden" name="created_by" value="<?php echo $this->session->userdata('user_id'); ?>">

                    <div class="mb-4">
                        <label for="atk_categories_nama" class="form-label">Categories Name ATK</label>
                        <div class="input-group">
                            <span class="input-group-text"><i class="fas fa-building"></i></span>
                            <input type="text" class="form-control" id="atk_categories_nama" name="atk_categories_nama" placeholder="Masukkan nama Kategori ATK" value="<?= set_value('atk_categories_nama') ?>" required>
                        </div>
                    </div>

                    <!-- Modal Footer with styled buttons -->
                    <div class="modal-footer">
                        <button type="button" class="btn btn-secondary" data-bs-dismiss="modal"><i class="fas fa-times"></i> Close</button>
                        <button type="submit" class="btn btn-primary"><i class="fas fa-save"></i> Save</button>
                    </div>
                </form>
            </div>
        </div>
    </div>
</div>
