<div class="rounded-2xl border border-border bg-card shadow-sm">
    <div class="border-b border-border px-5 py-4">
        <h4 class="text-base font-semibold text-foreground"><?= lang('delete') ?> <?= html_escape($user_info->fullname) ?></h4>
    </div>
    <div class="p-5">
        <form role="form" enctype="multipart/form-data" id="form"
              action="<?php echo base_url();
              if (!empty($client_id)) {
                  echo 'admin/client/delete_contacts/' . $client_id . '/' . $user_info->user_id;
              } else {
                  echo 'admin/user/delete_user/' . $user_info->user_id;
              } ?>" method="post"
              class="space-y-4">

            <div class="rounded-xl border border-rose-200 bg-rose-50 p-4 text-sm text-rose-700">
                <p class="font-semibold"><?= lang('delete_note_1') . ' ' . html_escape($user_info->fullname) . ' ' . lang('delete_note_2') ?></p>
                <p class="mt-2 font-semibold"><?= lang('delete_note_3') . ' ' . html_escape($user_info->fullname) . ' ' . lang('delete_note_4') ?></p>
            </div>

            <div class="space-y-3 text-sm text-foreground">
                <div class="flex items-start gap-3">
                    <i class="-circle-o text-emerald-500 text-lg" data-lucide="check"></i>
                    <span><?= lang('messages') . ' ' . lang('wil_be_deleted') ?></span>
                </div>
                <div class="flex items-start gap-3">
                    <i class="-circle-o text-emerald-500 text-lg" data-lucide="check"></i>
                    <span><?= lang('mailbox') . ' ' . lang('wil_be_deleted') ?></span>
                </div>
                <?php if (empty($client_id)) { ?>
                    <div class="flex items-start gap-3">
                        <i class="-circle-o text-emerald-500 text-lg" data-lucide="check"></i>
                        <span><?= lang('activities') . ' ' . lang('wil_be_deleted') ?></span>
                    </div>
                <?php } ?>
            </div>

            <div class="flex items-center justify-end gap-2 pt-2">
                <a href="<?= base_url() ?>admin/client/manage_client"
                   class="rounded-lg border border-border px-4 py-2 text-xs font-semibold text-foreground hover:bg-muted"><?= lang('cancel') ?></a>
                <button type="submit" name="submit" value="1"
                        class="rounded-lg bg-rose-600 px-4 py-2 text-xs font-semibold text-white shadow-sm hover:bg-rose-500"><?= lang('proceed_anyway') ?></button>
            </div>
        </form>
    </div>
</div>

