<main class="main-content position-relative border-radius-lg">
    <div class="container-fluid py-4">
        <h4 class="text-white">Ubah Profil</h4>
        <form method="POST">
            <div class="row">

                <!-- Username -->
                <div class="form-group col-md-4">
                    <label class="text-white">Username</label>
                    <input type="text" name="username" class="form-control" value="<?= htmlspecialchars($user['username']) ?>" required>
                </div>
            </div>

            <div class="row">
                <!-- Password -->
                <div class="form-group col-md-4">
                    <label class="text-white">Password Baru (Opsional)</label>
                    <input type="password" name="password" class="form-control">
                </div>

                <!-- Konfirmasi Password -->
                <div class="form-group col-md-4">
                    <label class="text-white">Konfirmasi Password</label>
                    <input type="password" name="confirm_password" class="form-control">
                </div>
            </div>

            <button type="submit" name="update" class="btn btn-primary mt-3">Simpan Perubahan</button>
        </form>
    </div>
</main>